diff options
author | Sunil Khatri <sunil.khatri@amd.com> | 2024-09-26 20:47:32 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-10-01 17:40:43 -0400 |
commit | 36aa9ab9c0c4a41fe334ab39951773f21709f89d (patch) | |
tree | 72a9b3e87e9b28b53c0e535fad155acd2138eac3 /drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c | |
parent | d5347e8d2711bb01c79698408ec189a7b7cfe45e (diff) | |
download | linux-36aa9ab9c0c4a41fe334ab39951773f21709f89d.tar.gz linux-36aa9ab9c0c4a41fe334ab39951773f21709f89d.tar.bz2 linux-36aa9ab9c0c4a41fe334ab39951773f21709f89d.zip |
drm/amdgpu: update the handle ptr in sw_fini
update the *handle to amdgpu_ip_block ptr for all
functions pointers of sw_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/amdgpu/jpeg_v4_0_5.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c index 59fa78136122..ad4030ccd917 100644 --- a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c +++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c @@ -163,9 +163,9 @@ static int jpeg_v4_0_5_sw_init(struct amdgpu_ip_block *ip_block) * * JPEG suspend and free up sw allocation */ -static int jpeg_v4_0_5_sw_fini(void *handle) +static int jpeg_v4_0_5_sw_fini(struct amdgpu_ip_block *ip_block) { - struct amdgpu_device *adev = (struct amdgpu_device *)handle; + struct amdgpu_device *adev = ip_block->adev; int r; r = amdgpu_jpeg_suspend(adev); |