From a697941d4c35e0287c51f1a5cad5c2aa32ae9159 Mon Sep 17 00:00:00 2001 From: Leif Delgass Date: Thu, 22 Aug 2002 19:35:31 +0000 Subject: 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. --- linux/drm_agpsupport.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/drm_agpsupport.h') diff --git a/linux/drm_agpsupport.h b/linux/drm_agpsupport.h index fc0b29aa..cd46110c 100644 --- a/linux/drm_agpsupport.h +++ b/linux/drm_agpsupport.h @@ -268,11 +268,11 @@ drm_agp_head_t *DRM(agp_init)(void) case INTEL_I810: head->chipset = "Intel i810"; break; case INTEL_I815: head->chipset = "Intel i815"; break; -#if LINUX_VERSION_CODE >= 0x020415 +#if LINUX_VERSION_CODE >= 0x02040f /* KERNEL_VERSION(2,4,15) */ case INTEL_I820: head->chipset = "Intel i820"; break; #endif case INTEL_I840: head->chipset = "Intel i840"; break; -#if LINUX_VERSION_CODE >= 0x020415 +#if LINUX_VERSION_CODE >= 0x02040f /* KERNEL_VERSION(2,4,15) */ case INTEL_I845: head->chipset = "Intel i845"; break; #endif case INTEL_I850: head->chipset = "Intel i850"; break; -- cgit v1.2.3