summaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/bufs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/drm/bufs.c')
-rw-r--r--drivers/char/drm/bufs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/bufs.c b/drivers/char/drm/bufs.c
index fd3b12488..c00f051a8 100644
--- a/drivers/char/drm/bufs.c
+++ b/drivers/char/drm/bufs.c
@@ -106,7 +106,7 @@ int drm_addmap(struct inode *inode, struct file *filp, unsigned int cmd,
dev->lock.hw_lock = map->handle; /* Pointer to lock */
}
break;
-#ifdef DRM_AGP
+#if defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE)
case _DRM_AGP:
map->offset = map->offset + dev->agp->base;
break;