summaryrefslogtreecommitdiff
path: root/linux/agpsupport.c
diff options
context:
space:
mode:
authorRik Faith <faith@alephnull.com>2000-07-20 05:17:49 +0000
committerRik Faith <faith@alephnull.com>2000-07-20 05:17:49 +0000
commitb4722ec943b3c51e103aaf7c6c77fe7b9c2c716d (patch)
tree4b783de6b311ed256d44678e944c19b30b24f99d /linux/agpsupport.c
parent0bd1fa795a06f592c1115b251685b36fec63fed3 (diff)
More fixups for kernel build: EXPORT_SYMTAB warning removal
put_module_symbol clean up of tdfx tdfx_cleanup routine Makefile.kernel fix
Diffstat (limited to 'linux/agpsupport.c')
-rw-r--r--linux/agpsupport.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux/agpsupport.c b/linux/agpsupport.c
index c89c3e25..628e8cad 100644
--- a/linux/agpsupport.c
+++ b/linux/agpsupport.c
@@ -313,3 +313,15 @@ drm_agp_head_t *drm_agp_init(void)
}
return head;
}
+
+void drm_agp_uninit(void)
+{
+ drm_agp_fill_t *fill;
+
+ for (fill = &drm_agp_fill[0]; fill->name; fill++) {
+#if LINUX_VERSION_CODE >= 0x020400
+ if ((*fill->f).address) put_module_symbol((*fill->f).address);
+#endif
+ (*fill->f).address = 0;
+ }
+}