summaryrefslogtreecommitdiff
path: root/linux/r128_drv.c
diff options
context:
space:
mode:
authorRik Faith <faith@alephnull.com>2000-07-21 14:20:57 +0000
committerRik Faith <faith@alephnull.com>2000-07-21 14:20:57 +0000
commit81da79d1ed038ff8968abcf1cde3362035603861 (patch)
treeaf8d628fec94dc69839ee0dcf2686567947c4db3 /linux/r128_drv.c
parent6d1ce8fe7727ee0a704a8a7464b22559ce9831fd (diff)
Changes to make AGP optional for in-kernel builds
Diffstat (limited to 'linux/r128_drv.c')
-rw-r--r--linux/r128_drv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/r128_drv.c b/linux/r128_drv.c
index e78d0231..18df1d83 100644
--- a/linux/r128_drv.c
+++ b/linux/r128_drv.c
@@ -99,7 +99,7 @@ static drm_ioctl_desc_t r128_ioctls[] = {
[DRM_IOCTL_NR(DRM_IOCTL_UNLOCK)] = { r128_unlock, 1, 0 },
[DRM_IOCTL_NR(DRM_IOCTL_FINISH)] = { drm_finish, 1, 0 },
-#ifdef DRM_AGP
+#ifdef CONFIG_DRM_AGP
[DRM_IOCTL_NR(DRM_IOCTL_AGP_ACQUIRE)] = { drm_agp_acquire, 1, 1 },
[DRM_IOCTL_NR(DRM_IOCTL_AGP_RELEASE)] = { drm_agp_release, 1, 1 },
[DRM_IOCTL_NR(DRM_IOCTL_AGP_ENABLE)] = { drm_agp_enable, 1, 1 },
@@ -244,7 +244,7 @@ static int r128_takedown(drm_device_t *dev)
dev->magiclist[i].head = dev->magiclist[i].tail = NULL;
}
-#ifdef DRM_AGP
+#ifdef CONFIG_DRM_AGP
/* Clear AGP information */
if (dev->agp) {
drm_agp_mem_t *entry;
@@ -356,7 +356,7 @@ int r128_init(void)
drm_mem_init();
drm_proc_init(dev);
-#ifdef DRM_AGP
+#ifdef CONFIG_DRM_AGP
dev->agp = drm_agp_init();
if (dev->agp == NULL) {
DRM_ERROR("Cannot initialize agpgart module.\n");
@@ -409,7 +409,7 @@ void r128_cleanup(void)
}
drm_ctxbitmap_cleanup(dev);
r128_takedown(dev);
-#ifdef DRM_AGP
+#ifdef CONFIG_DRM_AGP
if (dev->agp) {
drm_agp_uninit();
drm_free(dev->agp, sizeof(*dev->agp), DRM_MEM_AGPLISTS);