summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/aldebaran.c
diff options
context:
space:
mode:
authorSunil Khatri <sunil.khatri@amd.com>2024-09-26 13:29:24 +0530
committerAlex Deucher <alexander.deucher@amd.com>2024-10-01 17:40:31 -0400
commit3138ab2c5b32ec3c8e18db3cbbdd4ecdc8e41f65 (patch)
tree703deeb429162b8a873c5bc14f98a6ecab94f99c /drivers/gpu/drm/amd/amdgpu/aldebaran.c
parent146b085eadd2ce405e67492a80d6e767748d5642 (diff)
downloadlinux-3138ab2c5b32ec3c8e18db3cbbdd4ecdc8e41f65.tar.gz
linux-3138ab2c5b32ec3c8e18db3cbbdd4ecdc8e41f65.tar.bz2
linux-3138ab2c5b32ec3c8e18db3cbbdd4ecdc8e41f65.zip
drm/amdgpu: update the handle ptr in late_init
Update the ptr handle to amdgpu_ip_block ptr in all the functions of late_init function ptr. 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/amdgpu/aldebaran.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/aldebaran.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/aldebaran.c b/drivers/gpu/drm/amd/amdgpu/aldebaran.c
index 98fb0ba4f9cb..574aeca993e8 100644
--- a/drivers/gpu/drm/amd/amdgpu/aldebaran.c
+++ b/drivers/gpu/drm/amd/amdgpu/aldebaran.c
@@ -304,7 +304,7 @@ static int aldebaran_mode2_restore_ip(struct amdgpu_device *adev)
if (adev->ip_blocks[i].version->funcs->late_init) {
r = adev->ip_blocks[i].version->funcs->late_init(
- (void *)adev);
+ &adev->ip_blocks[i]);
if (r) {
dev_err(adev->dev,
"late_init of IP block <%s> failed %d after reset\n",