summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/amdgpu_dm
diff options
context:
space:
mode:
authorSunil Khatri <sunil.khatri@amd.com>2024-09-26 21:01:55 +0530
committerAlex Deucher <alexander.deucher@amd.com>2024-10-01 17:40:49 -0400
commit90410d39963a9ac0c0bdbe024f3cb9c346de7d68 (patch)
tree991b943979655a4da03bdee87a32ce2c17ca5caf /drivers/gpu/drm/amd/display/amdgpu_dm
parent36aa9ab9c0c4a41fe334ab39951773f21709f89d (diff)
downloadlinux-90410d39963a9ac0c0bdbe024f3cb9c346de7d68.tar.gz
linux-90410d39963a9ac0c0bdbe024f3cb9c346de7d68.tar.bz2
linux-90410d39963a9ac0c0bdbe024f3cb9c346de7d68.zip
drm/amdgpu: update the handle ptr in early_fini
Update the *handle to amdgpu_ip_block ptr for all functions pointers of early_fini. Signed-off-by: Sunil Khatri <sunil.khatri@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 9a1712673289..e222062e8db0 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -2115,9 +2115,9 @@ error:
return -EINVAL;
}
-static int amdgpu_dm_early_fini(void *handle)
+static int amdgpu_dm_early_fini(struct amdgpu_ip_block *ip_block)
{
- struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+ struct amdgpu_device *adev = ip_block->adev;
amdgpu_dm_audio_fini(adev);