Merge tag 'amd-drm-next-6.1-2022-09-08' of https://gitlab.freedesktop.org/agd5f/linux...
[linux-2.6-block.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_ctx.c
index afe22f83d4a6429470ffda2359b4314a7f300b8d..3ea48385fab3ae97bb2a7549ae405d7c72a8c979 100644 (file)
@@ -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);
        }