aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
index f024effa60f9..20cbc4eb5a6f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
@@ -219,13 +219,6 @@ struct amdgpu_ctx *amdgpu_ctx_get(struct amdgpu_fpriv *fpriv, uint32_t id)
219 return ctx; 219 return ctx;
220} 220}
221 221
222struct amdgpu_ctx *amdgpu_ctx_get_ref(struct amdgpu_ctx *ctx)
223{
224 if (ctx)
225 kref_get(&ctx->refcount);
226 return ctx;
227}
228
229int amdgpu_ctx_put(struct amdgpu_ctx *ctx) 222int amdgpu_ctx_put(struct amdgpu_ctx *ctx)
230{ 223{
231 if (ctx == NULL) 224 if (ctx == NULL)