Fix for debug memory routines
authorAlan Hourihane <alanh@tungstengraphics.com>
Thu, 17 Jan 2008 13:04:42 +0000 (13:04 +0000)
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Wed, 12 Mar 2008 09:13:22 +0000 (10:13 +0100)
linux-core/drm_memory.c

index 1a6c48d..12e0141 100644 (file)
@@ -326,7 +326,12 @@ static void *agp_remap(unsigned long offset, unsigned long size,
        return NULL;
 }
 #endif                         /* agp */
-
+#else
+static void *agp_remap(unsigned long offset, unsigned long size,
+                      struct drm_device * dev)
+{
+       return NULL;
+}
 #endif                         /* debug_memory */
 
 void drm_core_ioremap(struct drm_map *map, struct drm_device *dev)