diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2002-05-17 08:35:39 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2002-05-17 08:35:39 +0000 |
commit | 9c2285a4d1e7ebb76d4b653855023460b202caa9 (patch) | |
tree | 58a5de671789b92fb96a86664a873dfac4c3df08 | |
parent | 4a86c817f8b1d27b0644e9d127c29f34cb42b1cc (diff) |
remove some older Linux 2.3.99 code
-rw-r--r-- | linux-core/i830_dma.c | 7 | ||||
-rw-r--r-- | linux/i830_dma.c | 7 |
2 files changed, 4 insertions, 10 deletions
diff --git a/linux-core/i830_dma.c b/linux-core/i830_dma.c index 85526fb0..a0a61856 100644 --- a/linux-core/i830_dma.c +++ b/linux-core/i830_dma.c @@ -245,14 +245,11 @@ static int i830_unmap_buffer(drm_buf_t *buf) #else down_write( ¤t->mm->mmap_sem ); #endif -#if LINUX_VERSION_CODE < 0x020399 - retcode = do_munmap((unsigned long)buf_priv->virtual, - (size_t) buf->total); -#else + retcode = do_munmap(current->mm, (unsigned long)buf_priv->virtual, (size_t) buf->total); -#endif + #if LINUX_VERSION_CODE <= 0x020402 up( ¤t->mm->mmap_sem ); #else diff --git a/linux/i830_dma.c b/linux/i830_dma.c index 85526fb0..a0a61856 100644 --- a/linux/i830_dma.c +++ b/linux/i830_dma.c @@ -245,14 +245,11 @@ static int i830_unmap_buffer(drm_buf_t *buf) #else down_write( ¤t->mm->mmap_sem ); #endif -#if LINUX_VERSION_CODE < 0x020399 - retcode = do_munmap((unsigned long)buf_priv->virtual, - (size_t) buf->total); -#else + retcode = do_munmap(current->mm, (unsigned long)buf_priv->virtual, (size_t) buf->total); -#endif + #if LINUX_VERSION_CODE <= 0x020402 up( ¤t->mm->mmap_sem ); #else |