summaryrefslogtreecommitdiff
path: root/linux-core/drm_vm.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-07-31 13:13:21 +1000
committerDave Airlie <airlied@redhat.com>2008-07-31 13:31:30 +1000
commitd2d7f3069dac4bc5ddd3c8da4d3955f690274276 (patch)
tree7f612edd83232154129fdab69ca87a800e48592f /linux-core/drm_vm.c
parent55761b2fe706f8f68ca3a8827b950fd01af1650b (diff)
drm: userspace rip out TTM API
Diffstat (limited to 'linux-core/drm_vm.c')
-rw-r--r--linux-core/drm_vm.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/linux-core/drm_vm.c b/linux-core/drm_vm.c
index 0d5242d3..9a215161 100644
--- a/linux-core/drm_vm.c
+++ b/linux-core/drm_vm.c
@@ -715,13 +715,8 @@ static int drm_bo_vm_fault(struct vm_area_struct *vma,
unsigned long ret = VM_FAULT_NOPAGE;
dev = bo->dev;
- err = drm_bo_read_lock(&dev->bm.bm_lock, 1);
- if (err)
- return VM_FAULT_NOPAGE;
-
err = mutex_lock_interruptible(&bo->mutex);
if (err) {
- drm_bo_read_unlock(&dev->bm.bm_lock);
return VM_FAULT_NOPAGE;
}
@@ -788,7 +783,6 @@ static int drm_bo_vm_fault(struct vm_area_struct *vma,
out_unlock:
BUG_ON(bo->priv_flags & _DRM_BO_FLAG_UNLOCKED);
mutex_unlock(&bo->mutex);
- drm_bo_read_unlock(&dev->bm.bm_lock);
return ret;
}
#endif