diff options
| author | Sunil Khatri <[email protected]> | 2024-09-26 15:17:32 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-10-01 21:40:43 +0000 |
| commit | 36aa9ab9c0c4a41fe334ab39951773f21709f89d (patch) | |
| tree | 72a9b3e87e9b28b53c0e535fad155acd2138eac3 /drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | |
| parent | drm/amdgpu: update the handle ptr in sw_init (diff) | |
| download | kernel-36aa9ab9c0c4a41fe334ab39951773f21709f89d.tar.gz kernel-36aa9ab9c0c4a41fe334ab39951773f21709f89d.zip | |
drm/amdgpu: update the handle ptr in sw_fini
update the *handle to amdgpu_ip_block ptr for all
functions pointers of sw_fini.
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/vcn_v2_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c index 6b5a83d6a696..be6998ed56bc 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c @@ -241,10 +241,10 @@ static int vcn_v2_0_sw_init(struct amdgpu_ip_block *ip_block) * * VCN suspend and free up sw allocation */ -static int vcn_v2_0_sw_fini(void *handle) +static int vcn_v2_0_sw_fini(struct amdgpu_ip_block *ip_block) { int r, idx; - struct amdgpu_device *adev = (struct amdgpu_device *)handle; + struct amdgpu_device *adev = ip_block->adev; volatile struct amdgpu_fw_shared *fw_shared = adev->vcn.inst->fw_shared.cpu_addr; if (drm_dev_enter(adev_to_drm(adev), &idx)) { |
