Don't use obsolete drm_gem_object_unreference() but switch to i915_gem_object_put().
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
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);
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);
}