summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2002-05-17 08:35:47 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2002-05-17 08:35:47 +0000
commitcd375832813a66491f43c3f5e56ed74670955e43 (patch)
treebdcaeb68692dc38d2bce4f08f73cb2369760d6b3
parent91d7b17e82e8d8659405832a3cd1e7a904ad283f (diff)
Remove some older Linux 2.3.99 code
-rw-r--r--linux-core/i830_dma.c7
-rw-r--r--linux/i830_dma.c7
2 files changed, 4 insertions, 10 deletions
diff --git a/linux-core/i830_dma.c b/linux-core/i830_dma.c
index 6d0e3223..e83ac5e9 100644
--- a/linux-core/i830_dma.c
+++ b/linux-core/i830_dma.c
@@ -247,14 +247,11 @@ static int i830_unmap_buffer(drm_buf_t *buf)
#else
down_write( &current->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( &current->mm->mmap_sem );
#else
diff --git a/linux/i830_dma.c b/linux/i830_dma.c
index 6d0e3223..e83ac5e9 100644
--- a/linux/i830_dma.c
+++ b/linux/i830_dma.c
@@ -247,14 +247,11 @@ static int i830_unmap_buffer(drm_buf_t *buf)
#else
down_write( &current->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( &current->mm->mmap_sem );
#else