drm/shmobile: use drm_modeset_lock_all
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 2 Dec 2012 00:36:59 +0000 (01:36 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 20 Jan 2013 21:16:51 +0000 (22:16 +0100)
Only a resume method to account for.

v2: Fixup compilation.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/shmobile/shmob_drm_drv.c

index d1d5306ebf24a6a6f563cdc7a7c3e0af375b72e4..f6e0b53950518a14165b067dc06a1c042cc311e4 100644 (file)
@@ -313,9 +313,9 @@ static int shmob_drm_pm_resume(struct device *dev)
 {
        struct shmob_drm_device *sdev = dev_get_drvdata(dev);
 
-       mutex_lock(&sdev->ddev->mode_config.mutex);
+       drm_modeset_lock_all(sdev->ddev);
        shmob_drm_crtc_resume(&sdev->crtc);
-       mutex_unlock(&sdev->ddev->mode_config.mutex);
+       drm_modeset_unlock_all(sdev->ddev);
 
        drm_kms_helper_poll_enable(sdev->ddev);
        return 0;