diff options
author | Sunil Khatri <sunil.khatri@amd.com> | 2024-09-30 14:11:22 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-10-01 17:43:38 -0400 |
commit | 94b2e07ad493f09e79aceb4942f9065fa100eea6 (patch) | |
tree | 6faca6bafdc3465eea8212612914adfe9a7fe75e /drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | |
parent | 47d827f9c77bc87ccdb0fdefa95a2d6d28037497 (diff) | |
download | linux-94b2e07ad493f09e79aceb4942f9065fa100eea6.tar.gz linux-94b2e07ad493f09e79aceb4942f9065fa100eea6.tar.bz2 linux-94b2e07ad493f09e79aceb4942f9065fa100eea6.zip |
drm/amdgpu: update the handle ptr in prepare_suspend
Update the *handle to amdgpu_ip_block ptr for all
functions pointers of prepare_suspend.
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/uvd_v4_2.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c index 522aec5f8e26..de9e6222d495 100644 --- a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c +++ b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c @@ -218,9 +218,9 @@ static int uvd_v4_2_hw_fini(void *handle) return 0; } -static int uvd_v4_2_prepare_suspend(void *handle) +static int uvd_v4_2_prepare_suspend(struct amdgpu_ip_block *ip_block) { - struct amdgpu_device *adev = (struct amdgpu_device *)handle; + struct amdgpu_device *adev = ip_block->adev; return amdgpu_uvd_prepare_suspend(adev); } |