summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-05-19 04:11:22 +0000
committerDave Airlie <airlied@linux.ie>2006-05-19 04:11:22 +0000
commit79e596917290807f11ba6f529abc30b7c6336e52 (patch)
tree9ae26b6492d2cc092660b9d44c0c0e3b6cd4cbf4
parentb1a64b8136b3dafb843d9b677becfdb5f2ac1eb8 (diff)
rip out unneeded back compat code
-rw-r--r--linux-core/drm_bufs.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c
index 4491b9e9..9be18595 100644
--- a/linux-core/drm_bufs.c
+++ b/linux-core/drm_bufs.c
@@ -1574,34 +1574,18 @@ int drm_mapbufs(struct inode *inode, struct file *filp,
retcode = -EINVAL;
goto done;
}
-#if LINUX_VERSION_CODE <= 0x020402
- down(&current->mm->mmap_sem);
-#else
down_write(&current->mm->mmap_sem);
-#endif
virtual = do_mmap(filp, 0, map->size,
PROT_READ | PROT_WRITE,
MAP_SHARED,
token);
-#if LINUX_VERSION_CODE <= 0x020402
- up(&current->mm->mmap_sem);
-#else
up_write(&current->mm->mmap_sem);
-#endif
} else {
-#if LINUX_VERSION_CODE <= 0x020402
- down(&current->mm->mmap_sem);
-#else
down_write(&current->mm->mmap_sem);
-#endif
virtual = do_mmap(filp, 0, dma->byte_count,
PROT_READ | PROT_WRITE,
MAP_SHARED, 0);
-#if LINUX_VERSION_CODE <= 0x020402
- up(&current->mm->mmap_sem);
-#else
up_write(&current->mm->mmap_sem);
-#endif
}
if (virtual > -1024UL) {
/* Real error */