diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2005-08-07 15:19:58 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-08-07 15:19:58 +1000 |
commit | d27c9b548ad79c14830c57355dbe3a35f970532a (patch) | |
tree | e274cd6193597b3860cbf9768241528067905912 /drivers/char/drm/drm_bufs.c | |
parent | aa0ca6b4bb818406d4769edb9ff115500c8e4090 (diff) | |
download | linux-d27c9b548ad79c14830c57355dbe3a35f970532a.tar.gz linux-d27c9b548ad79c14830c57355dbe3a35f970532a.tar.bz2 linux-d27c9b548ad79c14830c57355dbe3a35f970532a.zip |
drm: remove version.h and any version checks..
This patch removes all the drm kernel conditionals from the kernel DRM tree.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_bufs.c')
-rw-r--r-- | drivers/char/drm/drm_bufs.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/char/drm/drm_bufs.c b/drivers/char/drm/drm_bufs.c index d1e0b106c261..b70802035d9e 100644 --- a/drivers/char/drm/drm_bufs.c +++ b/drivers/char/drm/drm_bufs.c @@ -1499,34 +1499,18 @@ int drm_mapbufs( struct inode *inode, struct file *filp, goto done; } -#if LINUX_VERSION_CODE <= 0x020402 - down( ¤t->mm->mmap_sem ); -#else down_write( ¤t->mm->mmap_sem ); -#endif virtual = do_mmap( filp, 0, map->size, PROT_READ | PROT_WRITE, MAP_SHARED, token ); -#if LINUX_VERSION_CODE <= 0x020402 - up( ¤t->mm->mmap_sem ); -#else up_write( ¤t->mm->mmap_sem ); -#endif } else { -#if LINUX_VERSION_CODE <= 0x020402 - down( ¤t->mm->mmap_sem ); -#else down_write( ¤t->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( ¤t->mm->mmap_sem ); -#else up_write( ¤t->mm->mmap_sem ); -#endif } if ( virtual > -1024UL ) { /* Real error */ |