summaryrefslogtreecommitdiff
path: root/linux-core/drmP.h
diff options
context:
space:
mode:
authorLeif Delgass <ldelgass@users.sourceforge.net>2002-08-22 19:35:31 +0000
committerLeif Delgass <ldelgass@users.sourceforge.net>2002-08-22 19:35:31 +0000
commita697941d4c35e0287c51f1a5cad5c2aa32ae9159 (patch)
tree5b3b851b18d9a64c515bb2f19d3688ea3599ca0b /linux-core/drmP.h
parent2febcafd66adfe0728f93e4b9b2954d793f71459 (diff)
Don't (re)define vmalloc_to_page for kernel >= 2.4.19, as it has been
backported from 2.5.x. Also fix a couple of incorrect LINUX_VERSION_CODE tests and fix header dependency for r128, radeon when building without AGP.
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r--linux-core/drmP.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index c00efb4c..f31c5c3d 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -165,7 +165,7 @@
#define pte_unmap(pte)
#endif
-#if LINUX_VERSION_CODE < 0x020500
+#if LINUX_VERSION_CODE < 0x020413 /* KERNEL_VERSION(2,4,19) */
static inline struct page * vmalloc_to_page(void * vmalloc_addr)
{
unsigned long addr = (unsigned long) vmalloc_addr;