aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
diff options
context:
space:
mode:
authorSunil Khatri <[email protected]>2024-09-30 09:07:11 +0000
committerAlex Deucher <[email protected]>2024-10-01 21:44:41 +0000
commit9d5ee7ce88acc7f9d5843ba7916d4b421af5c921 (patch)
treef6e999743e6c3d4f7ebf32182e17818a5f02e3b0 /drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
parentdrm/amdgpu: Fix logic to determine TOS reload (diff)
downloadkernel-9d5ee7ce88acc7f9d5843ba7916d4b421af5c921.tar.gz
kernel-9d5ee7ce88acc7f9d5843ba7916d4b421af5c921.zip
drm/amdgpu: update the handle ptr in pre_soft_reset
Update the *handle to amdgpu_ip_block ptr for all functions pointers of pre_soft_reset. 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/vce_v3_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vce_v3_0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
index 6a8f555ffc61..6b7916c72193 100644
--- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
@@ -699,9 +699,9 @@ static int vce_v3_0_soft_reset(void *handle)
return 0;
}
-static int vce_v3_0_pre_soft_reset(void *handle)
+static int vce_v3_0_pre_soft_reset(struct amdgpu_ip_block *ip_block)
{
- struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+ struct amdgpu_device *adev = ip_block->adev;
if (!adev->vce.srbm_soft_reset)
return 0;