diff options
| author | Sunil Khatri <[email protected]> | 2024-09-30 12:12:01 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-10-07 18:02:50 +0000 |
| commit | 7feb4f3ad8befa0850a576adaa32d57962bf82e5 (patch) | |
| tree | 6285622982e095990c8d62c512ee88caa4a37532 /drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | |
| parent | drm/amdgpu: update the handle ptr in suspend (diff) | |
| download | kernel-7feb4f3ad8befa0850a576adaa32d57962bf82e5.tar.gz kernel-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 <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c index e27c5d2b4290..d876b407249d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c @@ -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)); |
