patch-2.3.99-pre1 linux/fs/umsdos/inode.c

Next file: linux/fs/vfat/namei.c
Previous file: linux/fs/ufs/super.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/fs/umsdos/inode.c linux/fs/umsdos/inode.c
@@ -435,22 +435,17 @@
 
 static DECLARE_FSTYPE_DEV(umsdos_fs_type, "umsdos", UMSDOS_read_super);
 
-int __init init_umsdos_fs (void)
+static int __init init_umsdos_fs (void)
 {
 	return register_filesystem (&umsdos_fs_type);
 }
 
-#ifdef MODULE
-EXPORT_NO_SYMBOLS;
-
-int init_module (void)
-{
-	return init_umsdos_fs ();
-}
-
-void cleanup_module (void)
+static void __exit exit_umsdos_fs (void)
 {
 	unregister_filesystem (&umsdos_fs_type);
 }
 
-#endif
+EXPORT_NO_SYMBOLS;
+
+module_init(init_umsdos_fs)
+module_exit(exit_umsdos_fs)

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