rip out unneeded back compat code

main
Dave Airlie 2006-05-19 04:11:22 +00:00
parent b1a64b8136
commit 79e5969172
1 changed files with 0 additions and 16 deletions

View File

@ -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 */