aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 16302f7d59f6..fc9f14747f70 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1760,8 +1760,11 @@ int amdgpu_resume_kms(struct drm_device *dev, bool resume, bool fbcon)
1760 } 1760 }
1761 1761
1762 r = amdgpu_late_init(adev); 1762 r = amdgpu_late_init(adev);
1763 if (r) 1763 if (r) {
1764 if (fbcon)
1765 console_unlock();
1764 return r; 1766 return r;
1767 }
1765 1768
1766 /* pin cursors */ 1769 /* pin cursors */
1767 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { 1770 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {