summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2016-10-19 12:36:56 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2016-10-20 17:18:38 +0800
commitbbc3693351fcf4ab74b0913e15189362588cd34f (patch)
treed3b8fe5dd597853393a0372017356ffe599fe59a /drivers/gpu/drm/i915
parent66a46e9df043cc316cc26efcb0972435db63654b (diff)
drm/i915/gvt: Fix warning on obsolete function usage
Don't use obsolete drm_gem_object_unreference() but switch to i915_gem_object_put(). Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r--drivers/gpu/drm/i915/gvt/execlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/gvt/execlist.c b/drivers/gpu/drm/i915/gvt/execlist.c
index b87b4f5e4c8f..983bf863bc1f 100644
--- a/drivers/gpu/drm/i915/gvt/execlist.c
+++ b/drivers/gpu/drm/i915/gvt/execlist.c
@@ -499,7 +499,7 @@ static void release_shadow_batch_buffer(struct intel_vgpu_workload *workload)
list_for_each_entry_safe(entry_obj, temp, &workload->shadow_bb,
list) {
- drm_gem_object_unreference(&(entry_obj->obj->base));
+ i915_gem_object_put(entry_obj->obj);
kvfree(entry_obj->va);
list_del(&entry_obj->list);
kfree(entry_obj);
@@ -512,7 +512,7 @@ static void release_shadow_wa_ctx(struct intel_shadow_wa_ctx *wa_ctx)
if (wa_ctx->indirect_ctx.size == 0)
return;
- drm_gem_object_unreference(&(wa_ctx->indirect_ctx.obj->base));
+ i915_gem_object_put(wa_ctx->indirect_ctx.obj);
kvfree(wa_ctx->indirect_ctx.shadow_va);
}