diff options
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_debugfs.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_debugfs.c b/drivers/gpu/drm/omapdrm/omap_debugfs.c index c0aa40f8ad6a..c27f59da7f29 100644 --- a/drivers/gpu/drm/omapdrm/omap_debugfs.c +++ b/drivers/gpu/drm/omapdrm/omap_debugfs.c | |||
@@ -57,17 +57,6 @@ static int fb_show(struct seq_file *m, void *arg) | |||
57 | struct drm_device *dev = node->minor->dev; | 57 | struct drm_device *dev = node->minor->dev; |
58 | struct omap_drm_private *priv = dev->dev_private; | 58 | struct omap_drm_private *priv = dev->dev_private; |
59 | struct drm_framebuffer *fb; | 59 | struct drm_framebuffer *fb; |
60 | int ret; | ||
61 | |||
62 | ret = mutex_lock_interruptible(&dev->mode_config.mutex); | ||
63 | if (ret) | ||
64 | return ret; | ||
65 | |||
66 | ret = mutex_lock_interruptible(&dev->struct_mutex); | ||
67 | if (ret) { | ||
68 | mutex_unlock(&dev->mode_config.mutex); | ||
69 | return ret; | ||
70 | } | ||
71 | 60 | ||
72 | seq_printf(m, "fbcon "); | 61 | seq_printf(m, "fbcon "); |
73 | omap_framebuffer_describe(priv->fbdev->fb, m); | 62 | omap_framebuffer_describe(priv->fbdev->fb, m); |
@@ -82,9 +71,6 @@ static int fb_show(struct seq_file *m, void *arg) | |||
82 | } | 71 | } |
83 | mutex_unlock(&dev->mode_config.fb_lock); | 72 | mutex_unlock(&dev->mode_config.fb_lock); |
84 | 73 | ||
85 | mutex_unlock(&dev->struct_mutex); | ||
86 | mutex_unlock(&dev->mode_config.mutex); | ||
87 | |||
88 | return 0; | 74 | return 0; |
89 | } | 75 | } |
90 | 76 | ||