mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
drm/amdgpu: update the handle ptr in suspend
Update the *handle to amdgpu_ip_block ptr for all functions pointers of 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>
This commit is contained in:
committed by
Alex Deucher
parent
82ae6619a4
commit
982d7f9bfe
@@ -605,15 +605,15 @@ static int amdgpu_vkms_hw_fini(void *handle)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int amdgpu_vkms_suspend(void *handle)
|
||||
static int amdgpu_vkms_suspend(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
||||
struct amdgpu_device *adev = ip_block->adev;
|
||||
int r;
|
||||
|
||||
r = drm_mode_config_helper_suspend(adev_to_drm(adev));
|
||||
if (r)
|
||||
return r;
|
||||
return amdgpu_vkms_hw_fini(handle);
|
||||
return amdgpu_vkms_hw_fini(adev);
|
||||
}
|
||||
|
||||
static int amdgpu_vkms_resume(void *handle)
|
||||
|
||||
Reference in New Issue
Block a user