aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
diff options
context:
space:
mode:
authorSunil Khatri <[email protected]>2024-09-30 11:30:38 +0000
committerAlex Deucher <[email protected]>2024-10-07 18:02:45 +0000
commit982d7f9bfe4a50334543ef97808615693d7ac29e (patch)
treecbc5e6489b75bfe0c56f8fad257ebbb1161c86bf /drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
parentdrm/amdgpu: update the handle ptr in wait_for_idle (diff)
downloadkernel-982d7f9bfe4a50334543ef97808615693d7ac29e.tar.gz
kernel-982d7f9bfe4a50334543ef97808615693d7ac29e.zip
drm/amdgpu: update the handle ptr in suspend
Update the *handle to amdgpu_ip_block ptr for all functions pointers of suspend. 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/sdma_v3_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
index 145867839f14..c31334e8bac5 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
@@ -1188,9 +1188,9 @@ static int sdma_v3_0_hw_fini(void *handle)
return 0;
}
-static int sdma_v3_0_suspend(void *handle)
+static int sdma_v3_0_suspend(struct amdgpu_ip_block *ip_block)
{
- struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+ struct amdgpu_device *adev = ip_block->adev;
return sdma_v3_0_hw_fini(adev);
}