diff options
author | Rob Clark <robdclark@gmail.com> | 2014-05-30 16:29:48 (GMT) |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-06-05 00:02:40 (GMT) |
commit | 5ea1f752ae04be403a3dc8ec876a60d7f5f6990a (patch) | |
tree | 74b622f4eae713fdafc6aa946cfde3153580772c /drivers/gpu/drm/msm | |
parent | 51fd371bbaf94018a1223b4e2cf20b9880fd92d4 (diff) | |
download | linux-5ea1f752ae04be403a3dc8ec876a60d7f5f6990a.tar.xz |
drm: add drm_fb_helper_restore_fbdev_mode_unlocked()
All drm_fb_helper_restore_fbdev_mode() call sites, save one, do the same
locking. Simplify this into drm_fb_helper_restore_fbdev_mode_unlocked().
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/msm')
-rw-r--r-- | drivers/gpu/drm/msm/msm_drv.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index c071aac..0d2562f 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -386,11 +386,8 @@ static void msm_preclose(struct drm_device *dev, struct drm_file *file) static void msm_lastclose(struct drm_device *dev) { struct msm_drm_private *priv = dev->dev_private; - if (priv->fbdev) { - drm_modeset_lock_all(dev); - drm_fb_helper_restore_fbdev_mode(priv->fbdev); - drm_modeset_unlock_all(dev); - } + if (priv->fbdev) + drm_fb_helper_restore_fbdev_mode_unlocked(priv->fbdev); } static irqreturn_t msm_irq(int irq, void *arg) |