Commit 95505928 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[AGP] Readd module_exit function so that agpgart.ko can be unloaded.

parent 41a46a24
...@@ -280,8 +280,15 @@ int __init agp_init(void) ...@@ -280,8 +280,15 @@ int __init agp_init(void)
return 0; return 0;
} }
void __exit agp_exit(void)
{
if (agp_count!=0)
BUG();
}
#ifndef CONFIG_GART_IOMMU #ifndef CONFIG_GART_IOMMU
module_init(agp_init); module_init(agp_init);
module_exit(agp_exit);
#endif #endif
EXPORT_SYMBOL(agp_backend_acquire); EXPORT_SYMBOL(agp_backend_acquire);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment