drm/amdgpu: use adev_to_drm to get drm device
Subsystems (2)
PATCH 1/1 drm/amdgpu: use adev_to_drm to get drm device
adev_to_drm is used everywhere in amdgpu code, so modify it to keep consistency.
Signed-off-by Guchun Chen <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +1 -1
@@ -402,7 +402,7 @@ static void amdgpu_ctx_fini(struct kref *ref) } } -if (drm_dev_enter (&adev->ddev, &idx)) { +if (drm_dev_enter (adev_to_drm (adev), &idx)) {amdgpu_ctx_set_stable_pstate (ctx, ctx->stable_pstate);drm_dev_exit (idx); }
Signature · 1 line
2.25.1
Am 25.08.22 um 09:48 schrieb Guchun Chen:
Quoted 4 lines
adev_to_drmis used everywhere in amdgpu code, so modify it to keep consistency.Signed-off-by Guchun Chen <[email protected]>
Reviewed-by Christian König <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +1
-1@@ -402,7 +402,7 @@ static void amdgpu_ctx_fini(struct kref *ref) } } -if (drm_dev_enter (&adev->ddev, &idx)) { +if (drm_dev_enter (adev_to_drm (adev), &idx)) {amdgpu_ctx_set_stable_pstate (ctx, ctx->stable_pstate);drm_dev_exit (idx); }