提交 fa860a17 编写于 作者: D Daniel Vetter 提交者: Dave Airlie

drm: Print device information again in debugfs

I was a bit over-eager in my cleanup in

commit 95c081c1
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Tue Jun 21 10:54:12 2016 +0200

    drm: Move master pointer from drm_minor to drm_device

Noticed by Chris Wilson.

Fixes: 95c081c1 ("drm: Move master pointer from drm_minor to drm_device")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
Tested-by: NChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: NEmil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 bc91657e
...@@ -54,9 +54,6 @@ int drm_name_info(struct seq_file *m, void *data) ...@@ -54,9 +54,6 @@ int drm_name_info(struct seq_file *m, void *data)
mutex_lock(&dev->master_mutex); mutex_lock(&dev->master_mutex);
master = dev->master; master = dev->master;
if (!master)
goto out_unlock;
seq_printf(m, "%s", dev->driver->name); seq_printf(m, "%s", dev->driver->name);
if (dev->dev) if (dev->dev)
seq_printf(m, " dev=%s", dev_name(dev->dev)); seq_printf(m, " dev=%s", dev_name(dev->dev));
...@@ -65,7 +62,6 @@ int drm_name_info(struct seq_file *m, void *data) ...@@ -65,7 +62,6 @@ int drm_name_info(struct seq_file *m, void *data)
if (dev->unique) if (dev->unique)
seq_printf(m, " unique=%s", dev->unique); seq_printf(m, " unique=%s", dev->unique);
seq_printf(m, "\n"); seq_printf(m, "\n");
out_unlock:
mutex_unlock(&dev->master_mutex); mutex_unlock(&dev->master_mutex);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册