Commit b13f5980 authored by Daniel Vetter's avatar Daniel Vetter

drm/shmobile: use drm_modeset_lock_all

Only a resume method to account for.

v2: Fixup compilation.
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 795f1426
...@@ -313,9 +313,9 @@ static int shmob_drm_pm_resume(struct device *dev) ...@@ -313,9 +313,9 @@ static int shmob_drm_pm_resume(struct device *dev)
{ {
struct shmob_drm_device *sdev = dev_get_drvdata(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); 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); drm_kms_helper_poll_enable(sdev->ddev);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment