summaryrefslogtreecommitdiff
path: root/amdgpu/amdgpu_bo.c
diff options
context:
space:
mode:
authorQiang Yu <Qiang.Yu@amd.com>2017-08-10 15:57:09 +0800
committerQiang Yu <Qiang.Yu@amd.com>2017-08-10 17:14:00 +0800
commit73940bf2e26757b60bcdc4a4f75f8d500ed3a642 (patch)
tree06aff2867557e058f9a486568ce5f21b442b404b /amdgpu/amdgpu_bo.c
parentcdb9f3dc59769a02f0900ec0bfe13d190a8d13e6 (diff)
amdgpu: [HYBRID] change to use amdgpu_bo_free
amdgpu_bo_reference is dropped in upstream, some hybrid spec code still use it. So change it to amdgpu_bo_free. This patch should be splited and merged to the coresponding hybrid patches which introduce the usage of amdgpu_bo_reference when next rebase. Change-Id: I79ca028270adfc8427cf3d3e6e18002c6c7590b4 Signed-off-by: Qiang Yu <Qiang.Yu@amd.com> Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_bo.c')
-rw-r--r--amdgpu/amdgpu_bo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c
index 09028c73..1d90e5ec 100644
--- a/amdgpu/amdgpu_bo.c
+++ b/amdgpu/amdgpu_bo.c
@@ -1004,7 +1004,7 @@ int amdgpu_bo_va_op_refcounted(amdgpu_device_handle dev,
}
/* Just drop the reference. */
- amdgpu_bo_reference(&vao->bo, NULL);
+ amdgpu_bo_free(&vao->bo);
/* remove the remap from list */
list_del(&vao->list);
free(vao);
@@ -1043,7 +1043,7 @@ int amdgpu_bo_va_op_refcounted(amdgpu_device_handle dev,
/* unref the bo right after the unmap call */
if (ops == AMDGPU_VA_OP_UNMAP) {
/* Just drop the reference. */
- amdgpu_bo_reference(&bo, NULL);
+ amdgpu_bo_free(&bo);
/* remove the remap from list */
list_del(&vao->list);
free(vao);