]> Git Repo - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
Merge tag 'irqchip-4.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm...
[linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_object.c
index 21bfa2d8039e030b332406e9789df2343f609013..b0e14a3d54efd44e86580f816f41f05f16368b08 100644 (file)
@@ -825,7 +825,7 @@ struct amdgpu_bo *amdgpu_bo_ref(struct amdgpu_bo *bo)
        if (bo == NULL)
                return NULL;
 
-       ttm_bo_reference(&bo->tbo);
+       ttm_bo_get(&bo->tbo);
        return bo;
 }
 
@@ -843,9 +843,8 @@ void amdgpu_bo_unref(struct amdgpu_bo **bo)
                return;
 
        tbo = &((*bo)->tbo);
-       ttm_bo_unref(&tbo);
-       if (tbo == NULL)
-               *bo = NULL;
+       ttm_bo_put(tbo);
+       *bo = NULL;
 }
 
 /**
This page took 0.029948 seconds and 4 git commands to generate.