Skip to content

Commit

Permalink
drm/ast: use drm_modeset_lock_all
Browse files Browse the repository at this point in the history
Just a call to drm_helper_resume_force_mode, obviously wants full
locking for that.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Daniel Vetter committed Jan 20, 2013
1 parent 0a81951 commit 795f142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/ast/ast_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ static int ast_drm_thaw(struct drm_device *dev)
ast_post_gpu(dev);

drm_mode_config_reset(dev);
mutex_lock(&dev->mode_config.mutex);
drm_modeset_lock_all(dev);
drm_helper_resume_force_mode(dev);
mutex_unlock(&dev->mode_config.mutex);
drm_modeset_unlock_all(dev);

console_lock();
ast_fbdev_set_suspend(dev, 0);
Expand Down

0 comments on commit 795f142

Please sign in to comment.