drm/amdgpu: use adev_to_drm for consistency
Subsystems (2)
PATCH 1/1 drm/amdgpu: use adev_to_drm for consistency
Keep code consistency when accessing drm_device from amdgpu driver.
Signed-off-by Guchun Chen <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c +1 -1
@@ -150,7 +150,7 @@ static int vcn_v4_0_sw_fini(void *handle)struct amdgpu_device *adev = (struct amdgpu_device *)handle;int i, r, idx; -if (drm_dev_enter (&adev->ddev, &idx)) { +if (drm_dev_enter (adev_to_drm (adev), &idx)) {for (i =0 ; i < adev->vcn.num_vcn_inst; i++) {volatile struct amdgpu_vcn4_fw_shared *fw_shared;
Signature · 1 line
2.17.1
[Public]
Reviewed-by Alex Deucher <[email protected]>
________________________________
From: amd-gfx <[email protected]> on behalf of Guchun Chen <[email protected]>
Sent: Monday, July 25, 2022 2:18 AM
To: [email protected] <[email protected]>; Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Koenig, Christian <[email protected]>; Pan, Xinhui <[email protected]>
Cc: Chen, Guchun <[email protected]>
Subject: [PATCH] drm/amdgpu: use adev_to_drm for consistency
Keep code consistency when accessing drm_device from amdgpu driver.
Signed-off-by Guchun Chen <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c +1 -1
@@ -150,7 +150,7 @@ static int vcn_v4_0_sw_fini(void *handle)struct amdgpu_device *adev = (struct amdgpu_device *)handle;int i, r, idx; -if (drm_dev_enter (&adev->ddev, &idx)) { +if (drm_dev_enter (adev_to_drm (adev), &idx)) {for (i =0 ; i < adev->vcn.num_vcn_inst; i++) {volatile struct amdgpu_vcn4_fw_shared *fw_shared;
--
2.17.1