aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/shmobile/shmob_drm_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/shmobile/shmob_drm_drv.c')
-rw-r--r--drivers/gpu/drm/shmobile/shmob_drm_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/shmobile/shmob_drm_drv.c b/drivers/gpu/drm/shmobile/shmob_drm_drv.c
index d1d5306ebf24..f6e0b5395051 100644
--- a/drivers/gpu/drm/shmobile/shmob_drm_drv.c
+++ b/drivers/gpu/drm/shmobile/shmob_drm_drv.c
@@ -313,9 +313,9 @@ static int shmob_drm_pm_resume(struct device *dev)
313{ 313{
314 struct shmob_drm_device *sdev = dev_get_drvdata(dev); 314 struct shmob_drm_device *sdev = dev_get_drvdata(dev);
315 315
316 mutex_lock(&sdev->ddev->mode_config.mutex); 316 drm_modeset_lock_all(sdev->ddev);
317 shmob_drm_crtc_resume(&sdev->crtc); 317 shmob_drm_crtc_resume(&sdev->crtc);
318 mutex_unlock(&sdev->ddev->mode_config.mutex); 318 drm_modeset_unlock_all(sdev->ddev);
319 319
320 drm_kms_helper_poll_enable(sdev->ddev); 320 drm_kms_helper_poll_enable(sdev->ddev);
321 return 0; 321 return 0;