diff options
author | Sunil Khatri <sunil.khatri@amd.com> | 2024-09-30 17:42:01 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-10-07 14:02:50 -0400 |
commit | 7feb4f3ad8befa0850a576adaa32d57962bf82e5 (patch) | |
tree | 6285622982e095990c8d62c512ee88caa4a37532 /drivers/gpu/drm/amd/amdgpu/nv.c | |
parent | 982d7f9bfe4a50334543ef97808615693d7ac29e (diff) | |
download | linux-7feb4f3ad8befa0850a576adaa32d57962bf82e5.tar.gz linux-7feb4f3ad8befa0850a576adaa32d57962bf82e5.tar.bz2 linux-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 <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/nv.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/nv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index b6d373b167dc..a8f5a951486d 100644 --- a/drivers/gpu/drm/amd/amdgpu/nv.c +++ b/drivers/gpu/drm/amd/amdgpu/nv.c @@ -1036,9 +1036,9 @@ static int nv_common_suspend(struct amdgpu_ip_block *ip_block) return nv_common_hw_fini(adev); } -static int nv_common_resume(void *handle) +static int nv_common_resume(struct amdgpu_ip_block *ip_block) { - struct amdgpu_device *adev = (struct amdgpu_device *)handle; + struct amdgpu_device *adev = ip_block->adev; return nv_common_hw_init(adev); } |