diff options
| author | Dmitry Baryshkov <[email protected]> | 2025-07-05 10:02:32 +0000 |
|---|---|---|
| committer | Rob Clark <[email protected]> | 2025-07-05 14:13:35 +0000 |
| commit | 4f89cf40d01ee26fb7eb50f65bae53daf4c3f569 (patch) | |
| tree | 62938e9695a6d720e2ab5acded16ba2d2a35d6b1 | |
| parent | drm/msm: make it possible to disable KMS-related code. (diff) | |
| download | kernel-4f89cf40d01ee26fb7eb50f65bae53daf4c3f569.tar.gz kernel-4f89cf40d01ee26fb7eb50f65bae53daf4c3f569.zip | |
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 <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/662583/
Signed-off-by: Rob Clark <[email protected]>
| -rw-r--r-- | drivers/gpu/drm/msm/msm_debugfs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_debugfs.c b/drivers/gpu/drm/msm/msm_debugfs.c index 4680ccf3e72f..bbda865addae 100644 --- a/drivers/gpu/drm/msm/msm_debugfs.c +++ b/drivers/gpu/drm/msm/msm_debugfs.c @@ -325,11 +325,16 @@ static struct drm_info_list msm_debugfs_list[] = { 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; if (!minor) return 0; + if (!priv->gpu_pdev) + return 0; + ret = msm_rd_debugfs_init(minor); if (ret) { DRM_DEV_ERROR(minor->dev->dev, "could not install rd debugfs\n"); |
