aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/iceland_ih.c
diff options
context:
space:
mode:
authorSunil Khatri <[email protected]>2024-09-30 12:12:01 +0000
committerAlex Deucher <[email protected]>2024-10-07 18:02:50 +0000
commit7feb4f3ad8befa0850a576adaa32d57962bf82e5 (patch)
tree6285622982e095990c8d62c512ee88caa4a37532 /drivers/gpu/drm/amd/amdgpu/iceland_ih.c
parentdrm/amdgpu: update the handle ptr in suspend (diff)
downloadkernel-7feb4f3ad8befa0850a576adaa32d57962bf82e5.tar.gz
kernel-7feb4f3ad8befa0850a576adaa32d57962bf82e5.zip
drm/amdgpu: update the handle ptr in resume
Update the *handle to amdgpu_ip_block ptr for all functions pointers of resume. Signed-off-by: Sunil Khatri <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/iceland_ih.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/iceland_ih.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/iceland_ih.c b/drivers/gpu/drm/amd/amdgpu/iceland_ih.c
index ed2939296311..bd6a1dc39a56 100644
--- a/drivers/gpu/drm/amd/amdgpu/iceland_ih.c
+++ b/drivers/gpu/drm/amd/amdgpu/iceland_ih.c
@@ -334,9 +334,9 @@ static int iceland_ih_suspend(struct amdgpu_ip_block *ip_block)
return iceland_ih_hw_fini(adev);
}
-static int iceland_ih_resume(void *handle)
+static int iceland_ih_resume(struct amdgpu_ip_block *ip_block)
{
- struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+ struct amdgpu_device *adev = ip_block->adev;
return iceland_ih_hw_init(adev);
}