Commit 4f89cf40 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Rob Clark
Browse files

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: default avatarDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/662583/


Signed-off-by: default avatarRob Clark <robin.clark@oss.qualcomm.com>
parent 98290b0a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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");