Commit a79f56d1 authored by Guchun Chen's avatar Guchun Chen Committed by Alex Deucher

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: default avatarGuchun Chen <guchun.chen@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 72010239
...@@ -402,7 +402,7 @@ static void amdgpu_ctx_fini(struct kref *ref) ...@@ -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); amdgpu_ctx_set_stable_pstate(ctx, ctx->stable_pstate);
drm_dev_exit(idx); drm_dev_exit(idx);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment