summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Fonseca <jrfonseca@users.sourceforge.net>2002-08-21 14:09:28 +0000
committerJose Fonseca <jrfonseca@users.sourceforge.net>2002-08-21 14:09:28 +0000
commit18d3fac990b9f3b5820306129feb5563b5d207f4 (patch)
tree2ac987d3441e1e6c1be964da996837ad19a12de3
parent77c35c043a8d50244d4fbaa4f2b5d0b7d4fd856f (diff)
Change the linux kernel version condition in the i810 driver (according to
Alan Cox)
-rw-r--r--linux-core/i810_dma.c4
-rw-r--r--linux/i810_dma.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/linux-core/i810_dma.c b/linux-core/i810_dma.c
index e6423fd6..79ea3baf 100644
--- a/linux-core/i810_dma.c
+++ b/linux-core/i810_dma.c
@@ -271,7 +271,7 @@ static unsigned long i810_alloc_page(drm_device_t *dev)
if(address == 0UL)
return 0;
-#if LINUX_VERSION_CODE < 0x020500
+#if LINUX_VERSION_CODE < 0x020409
atomic_inc(&virt_to_page(address)->count);
set_bit(PG_locked, &virt_to_page(address)->flags);
#else
@@ -284,7 +284,7 @@ static unsigned long i810_alloc_page(drm_device_t *dev)
static void i810_free_page(drm_device_t *dev, unsigned long page)
{
if (page) {
-#if LINUX_VERSION_CODE < 0x020500
+#if LINUX_VERSION_CODE < 0x020409
atomic_dec(&virt_to_page(page)->count);
clear_bit(PG_locked, &virt_to_page(page)->flags);
wake_up(&virt_to_page(page)->wait);
diff --git a/linux/i810_dma.c b/linux/i810_dma.c
index e6423fd6..79ea3baf 100644
--- a/linux/i810_dma.c
+++ b/linux/i810_dma.c
@@ -271,7 +271,7 @@ static unsigned long i810_alloc_page(drm_device_t *dev)
if(address == 0UL)
return 0;
-#if LINUX_VERSION_CODE < 0x020500
+#if LINUX_VERSION_CODE < 0x020409
atomic_inc(&virt_to_page(address)->count);
set_bit(PG_locked, &virt_to_page(address)->flags);
#else
@@ -284,7 +284,7 @@ static unsigned long i810_alloc_page(drm_device_t *dev)
static void i810_free_page(drm_device_t *dev, unsigned long page)
{
if (page) {
-#if LINUX_VERSION_CODE < 0x020500
+#if LINUX_VERSION_CODE < 0x020409
atomic_dec(&virt_to_page(page)->count);
clear_bit(PG_locked, &virt_to_page(page)->flags);
wake_up(&virt_to_page(page)->wait);