patch-2.3.99-pre1 linux/fs/vfat/vfatfs_syms.c

Next file: linux/include/asm-alpha/parport.h
Previous file: linux/fs/vfat/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/fs/vfat/vfatfs_syms.c linux/fs/vfat/vfatfs_syms.c
@@ -8,6 +8,7 @@
 #define ASC_LINUX_VERSION(V, P, S)	(((V) * 65536) + ((P) * 256) + (S))
 #include <linux/version.h>
 #include <linux/module.h>
+#include <linux/init.h>
 
 #include <linux/mm.h>
 #include <linux/msdos_fs.h>
@@ -22,8 +23,15 @@
 EXPORT_SYMBOL(vfat_read_super);
 EXPORT_SYMBOL(vfat_lookup);
 
-int init_vfat_fs(void)
+static int __init init_vfat_fs(void)
 {
 	return register_filesystem(&vfat_fs_type);
 }
 
+static void __exit exit_vfat_fs(void)
+{
+	unregister_filesystem(&vfat_fs_type);
+}
+
+module_init(init_vfat_fs)
+module_exit(exit_vfat_fs)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)