]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/gpu/drm/radeon/radeon_gart.c
drm/radeon: Use ttm_bo_is_reserved
[~shefty/rdma-dev.git] / drivers / gpu / drm / radeon / radeon_gart.c
index 4debd60e5aa63390f0f386ee236bfc42fe4f8cf3..8690be757d80e532cf20700499efc0cca902f212 100644 (file)
@@ -1237,7 +1237,7 @@ void radeon_vm_bo_invalidate(struct radeon_device *rdev,
 {
        struct radeon_bo_va *bo_va;
 
-       BUG_ON(!atomic_read(&bo->tbo.reserved));
+       BUG_ON(!radeon_bo_is_reserved(bo));
        list_for_each_entry(bo_va, &bo->va, bo_list) {
                bo_va->valid = false;
        }