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>
This commit is contained in:
Sunil Khatri
2024-09-30 17:42:01 +05:30
committed by Alex Deucher
parent 982d7f9bfe
commit 7feb4f3ad8
88 changed files with 182 additions and 182 deletions

View File

@@ -616,12 +616,12 @@ static int amdgpu_vkms_suspend(struct amdgpu_ip_block *ip_block)
return amdgpu_vkms_hw_fini(adev);
}
static int amdgpu_vkms_resume(void *handle)
static int amdgpu_vkms_resume(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_vkms_hw_init(handle);
r = amdgpu_vkms_hw_init(adev);
if (r)
return r;
return drm_mode_config_helper_resume(adev_to_drm(adev));