drm: sti: remove useless call to dev->struct_mutex
No need to protect debugfs functions with dev->struct_mutex Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1464630800-30786-19-git-send-email-daniel.vetter@ffwll.ch
This commit is contained in:

committato da
Daniel Vetter

parent
bd884b74bb
commit
ac851bf14b
@@ -92,12 +92,6 @@ static int vid_dbg_show(struct seq_file *s, void *arg)
|
||||
{
|
||||
struct drm_info_node *node = s->private;
|
||||
struct sti_vid *vid = (struct sti_vid *)node->info_ent->data;
|
||||
struct drm_device *dev = node->minor->dev;
|
||||
int ret;
|
||||
|
||||
ret = mutex_lock_interruptible(&dev->struct_mutex);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
seq_printf(s, "VID: (vaddr= 0x%p)", vid->regs);
|
||||
|
||||
@@ -122,7 +116,6 @@ static int vid_dbg_show(struct seq_file *s, void *arg)
|
||||
DBGFS_DUMP(VID_CSAT);
|
||||
seq_puts(s, "\n");
|
||||
|
||||
mutex_unlock(&dev->struct_mutex);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Fai riferimento in un nuovo problema
Block a user