drm/msm/dp: Fix crash if no DP device

Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
Rob Clark 2020-09-19 10:17:53 -07:00
parent 937f941ca0
commit 55fd7dd29d
1 changed files with 2 additions and 1 deletions

View File

@ -212,7 +212,8 @@ static int dpu_kms_debugfs_init(struct msm_kms *kms, struct drm_minor *minor)
dpu_debugfs_vbif_init(dpu_kms, entry);
dpu_debugfs_core_irq_init(dpu_kms, entry);
msm_dp_debugfs_init(priv->dp, minor);
if (priv->dp)
msm_dp_debugfs_init(priv->dp, minor);
return dpu_core_perf_debugfs_init(dpu_kms, entry);
}