drm/amdgpu: use drm_fb helper for console_(un)lock
authorShirish S <shirish.s@amd.com>
Fri, 20 Jul 2018 11:56:50 +0000 (17:26 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Jul 2018 19:24:18 +0000 (14:24 -0500)
commitecb8c50382e2e8bfd60483e3edf8cb883f7bde62
tree4f87fd9befa9f026d5ad9edbf03332646a22272b
parent3dbd823e53b572df1c84d73e85c518212fcdaddb
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c