diff options
author | 2022-06-16 16:52:01 -0400 | |
---|---|---|
committer | 2022-06-21 18:17:24 -0400 | |
commit | 163d4cd26a18db7db68a98b4d1ca95d542ca72af (patch) | |
tree | eb1cf54c4f1289ab3f30b92b5709bb43969a107d | |
parent | drm/radeon: Drop CONFIG_BACKLIGHT_CLASS_DEVICE ifdefs (diff) | |
download | wireguard-linux-163d4cd26a18db7db68a98b4d1ca95d542ca72af.tar.xz wireguard-linux-163d4cd26a18db7db68a98b4d1ca95d542ca72af.zip |
drm/amdgpu: fix adev variable used in amdgpu_device_gpu_recover()
Use the correct adev variable for the drm_fb_helper in
amdgpu_device_gpu_recover(). Noticed by inspection.
Fixes: 087451f372bf ("drm/amdgpu: use generic fb helpers instead of setting up AMD own's.")
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index ea9a9d781d8c..f2a4c268ac72 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -5187,7 +5187,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev, */ amdgpu_unregister_gpu_instance(tmp_adev); - drm_fb_helper_set_suspend_unlocked(adev_to_drm(adev)->fb_helper, true); + drm_fb_helper_set_suspend_unlocked(adev_to_drm(tmp_adev)->fb_helper, true); /* disable ras on ALL IPs */ if (!need_emergency_restart && |