summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>2013-06-27 13:48:27 +0200
committerDave Airlie <airlied@redhat.com>2013-06-28 12:04:14 +1000
commit8bd4ce56783da6dc96484462ddb113417e52150c (patch)
tree757c18cd8be70771f6d0989f2972913314e007a5 /drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
parent977c38d50ee286b8367b65885346dd58eccd0514 (diff)
downloadop-kernel-dev-8bd4ce56783da6dc96484462ddb113417e52150c.zip
op-kernel-dev-8bd4ce56783da6dc96484462ddb113417e52150c.tar.gz
drm/vmwgfx: get rid of ttm_bo_is_reserved usage
Use lockdep_assert_held instead. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c')
-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 5fae06a..d4e54fc 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
@@ -302,7 +302,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(!ttm_bo_is_reserved(bo));
+ lockdep_assert_held(&bo->resv->lock.base);
BUG_ON(old_mem_type != TTM_PL_VRAM &&
old_mem_type != VMW_PL_GMR);
OpenPOWER on IntegriCloud