summaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/drm/memory.c')
-rw-r--r--drivers/char/drm/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/memory.c b/drivers/char/drm/memory.c
index f342bb4fe..e1f462bdd 100644
--- a/drivers/char/drm/memory.c
+++ b/drivers/char/drm/memory.c
@@ -330,7 +330,7 @@ void drm_ioremapfree(void *pt, unsigned long size)
}
}
-#ifdef DRM_AGP
+#if defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE)
agp_memory *drm_alloc_agp(int pages, u32 type)
{
agp_memory *handle;