Skip to content

Commit

Permalink
drm/i915/gvt: Fix warning on obsolete function usage
Browse files Browse the repository at this point in the history
Don't use obsolete drm_gem_object_unreference() but switch to i915_gem_object_put().

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
  • Loading branch information
Zhenyu Wang committed Oct 20, 2016
1 parent 66a46e9 commit bbc3693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/i915/gvt/execlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}

Expand Down

0 comments on commit bbc3693

Please sign in to comment.