summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2012-10-12 14:59:50 +0000
committerDave Airlie <airlied@redhat.com>2012-11-07 10:58:20 +1000
commit94baf0e27181c6a2f82cdbc5b960b197570e17de (patch)
tree5c614e7cca298c7aeaff818c9126fade1e498efb /drivers/gpu/drm/vmwgfx
parent0a46fb5f41dbc7fae20764556ec7bf742cc0763a (diff)
downloadlinux-94baf0e27181c6a2f82cdbc5b960b197570e17de.tar.gz
linux-94baf0e27181c6a2f82cdbc5b960b197570e17de.tar.bz2
linux-94baf0e27181c6a2f82cdbc5b960b197570e17de.zip
drm/vmwgfx: use ttm_bo_is_reserved
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
index 3ce68a2e312d..bd78257cba8b 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
@@ -304,7 +304,7 @@ void vmw_bo_pin(struct ttm_buffer_object *bo, bool pin)
uint32_t old_mem_type = bo->mem.mem_type;
int ret;
- BUG_ON(!atomic_read(&bo->reserved));
+ BUG_ON(!ttm_bo_is_reserved(bo));
BUG_ON(old_mem_type != TTM_PL_VRAM &&
old_mem_type != VMW_PL_FLAG_GMR);