diff options
author | Shirish S <shirish.s@amd.com> | 2018-07-20 07:56:50 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-20 15:24:18 -0400 |
commit | ecb8c50382e2e8bfd60483e3edf8cb883f7bde62 (patch) | |
tree | 4f87fd9befa9f026d5ad9edbf03332646a22272b /drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | |
parent | 3dbd823e53b572df1c84d73e85c518212fcdaddb (diff) |
drm/amdgpu: use drm_fb helper for console_(un)lock
This patch removes the usage of console_(un)lock
by replacing drm_fb_helper_set_suspend() to
drm_fb_helper_set_suspend_unlocked() which locks and
unlocks the console instead of locking ourselves.
Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c index d44b76455e89..69c5d22f29bd 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | |||
@@ -373,8 +373,8 @@ void amdgpu_fbdev_fini(struct amdgpu_device *adev) | |||
373 | void amdgpu_fbdev_set_suspend(struct amdgpu_device *adev, int state) | 373 | void amdgpu_fbdev_set_suspend(struct amdgpu_device *adev, int state) |
374 | { | 374 | { |
375 | if (adev->mode_info.rfbdev) | 375 | if (adev->mode_info.rfbdev) |
376 | drm_fb_helper_set_suspend(&adev->mode_info.rfbdev->helper, | 376 | drm_fb_helper_set_suspend_unlocked(&adev->mode_info.rfbdev->helper, |
377 | state); | 377 | state); |
378 | } | 378 | } |
379 | 379 | ||
380 | int amdgpu_fbdev_total_size(struct amdgpu_device *adev) | 380 | int amdgpu_fbdev_total_size(struct amdgpu_device *adev) |