mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	drm/msm: bail out late_init_minor() if it is not a GPU device
Both perf and hangrd make sense only for GPU devices. Bail out if we are registering a KMS-only device. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/662583/ Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
This commit is contained in:
		
							parent
							
								
									98290b0a7d
								
							
						
					
					
						commit
						4f89cf40d0
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -325,11 +325,16 @@ static struct drm_info_list msm_debugfs_list[] = { | ||||||
| 
 | 
 | ||||||
| static int late_init_minor(struct drm_minor *minor) | static int late_init_minor(struct drm_minor *minor) | ||||||
| { | { | ||||||
|  | 	struct drm_device *dev = minor->dev; | ||||||
|  | 	struct msm_drm_private *priv = dev->dev_private; | ||||||
| 	int ret; | 	int ret; | ||||||
| 
 | 
 | ||||||
| 	if (!minor) | 	if (!minor) | ||||||
| 		return 0; | 		return 0; | ||||||
| 
 | 
 | ||||||
|  | 	if (!priv->gpu_pdev) | ||||||
|  | 		return 0; | ||||||
|  | 
 | ||||||
| 	ret = msm_rd_debugfs_init(minor); | 	ret = msm_rd_debugfs_init(minor); | ||||||
| 	if (ret) { | 	if (ret) { | ||||||
| 		DRM_DEV_ERROR(minor->dev->dev, "could not install rd debugfs\n"); | 		DRM_DEV_ERROR(minor->dev->dev, "could not install rd debugfs\n"); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Dmitry Baryshkov
						Dmitry Baryshkov