summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/drm_agpsupport.c4
-rw-r--r--linux/drm_agpsupport.h4
-rw-r--r--linux/tdfx.h1
3 files changed, 4 insertions, 5 deletions
diff --git a/linux-core/drm_agpsupport.c b/linux-core/drm_agpsupport.c
index 1a81211d..b070a59e 100644
--- a/linux-core/drm_agpsupport.c
+++ b/linux-core/drm_agpsupport.c
@@ -33,7 +33,7 @@
#include "drmP.h"
#include <linux/module.h>
-#if defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE)
+#if __REALLY_HAVE_AGP
#if LINUX_VERSION_CODE < 0x020400
#include "agpsupport-pre24.h"
@@ -332,4 +332,4 @@ int DRM(agp_unbind_memory)(agp_memory *handle)
return drm_agp->unbind_memory(handle);
}
-#endif /* defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE) */
+#endif /* __REALLY_HAVE_AGP */
diff --git a/linux/drm_agpsupport.h b/linux/drm_agpsupport.h
index 1a81211d..b070a59e 100644
--- a/linux/drm_agpsupport.h
+++ b/linux/drm_agpsupport.h
@@ -33,7 +33,7 @@
#include "drmP.h"
#include <linux/module.h>
-#if defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE)
+#if __REALLY_HAVE_AGP
#if LINUX_VERSION_CODE < 0x020400
#include "agpsupport-pre24.h"
@@ -332,4 +332,4 @@ int DRM(agp_unbind_memory)(agp_memory *handle)
return drm_agp->unbind_memory(handle);
}
-#endif /* defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE) */
+#endif /* __REALLY_HAVE_AGP */
diff --git a/linux/tdfx.h b/linux/tdfx.h
index a737374f..6af675ff 100644
--- a/linux/tdfx.h
+++ b/linux/tdfx.h
@@ -34,7 +34,6 @@
*/
#define DRM(x) tdfx_##x
-#define __HAVE_AGP 1
#define __HAVE_MTRR 1
#define __HAVE_CTX_BITMAP 1