diff options
author | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2012-10-12 14:59:50 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-11-07 10:58:20 +1000 |
commit | 94baf0e27181c6a2f82cdbc5b960b197570e17de (patch) | |
tree | 5c614e7cca298c7aeaff818c9126fade1e498efb /drivers/gpu/drm/vmwgfx | |
parent | 0a46fb5f41dbc7fae20764556ec7bf742cc0763a (diff) | |
download | op-kernel-dev-94baf0e27181c6a2f82cdbc5b960b197570e17de.zip op-kernel-dev-94baf0e27181c6a2f82cdbc5b960b197570e17de.tar.gz |
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.c | 2 |
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 3ce68a2..bd78257 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); |