]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/gpu/drm/radeon/radeon_object.c
drm/radeon: Use ttm_bo_is_reserved
[~shefty/rdma-dev.git] / drivers / gpu / drm / radeon / radeon_object.c
index b91118ccef867f5b59effd78d0ee93d65a932f8b..65c55556fd3f7677fe78dd2c16ae8ecbb4a13072 100644 (file)
@@ -384,7 +384,7 @@ int radeon_bo_get_surface_reg(struct radeon_bo *bo)
        int steal;
        int i;
 
-       BUG_ON(!atomic_read(&bo->tbo.reserved));
+       BUG_ON(!radeon_bo_is_reserved(bo));
 
        if (!bo->tiling_flags)
                return 0;
@@ -510,7 +510,7 @@ void radeon_bo_get_tiling_flags(struct radeon_bo *bo,
                                uint32_t *tiling_flags,
                                uint32_t *pitch)
 {
-       BUG_ON(!atomic_read(&bo->tbo.reserved));
+       BUG_ON(!radeon_bo_is_reserved(bo));
        if (tiling_flags)
                *tiling_flags = bo->tiling_flags;
        if (pitch)
@@ -520,7 +520,7 @@ void radeon_bo_get_tiling_flags(struct radeon_bo *bo,
 int radeon_bo_check_tiling(struct radeon_bo *bo, bool has_moved,
                                bool force_drop)
 {
-       BUG_ON(!atomic_read(&bo->tbo.reserved));
+       BUG_ON(!radeon_bo_is_reserved(bo));
 
        if (!(bo->tiling_flags & RADEON_TILING_SURFACE))
                return 0;