patch-2.3.41 linux/fs/autofs/init.c

Next file: linux/fs/autofs4/Makefile
Previous file: linux/fs/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.40/linux/fs/autofs/init.c linux/fs/autofs/init.c
@@ -21,25 +21,18 @@
 	NULL
 };
 
-#ifdef MODULE
-int init_module(void)
+static int __init init_autofs_fs(void)
 {
 	return register_filesystem(&autofs_fs_type);
 }
 
-void cleanup_module(void)
+static void __exit exit_autofs_fs(void)
 {
 	unregister_filesystem(&autofs_fs_type);
 }
 
-#else /* MODULE */
-
-int __init init_autofs_fs(void)
-{
-	return register_filesystem(&autofs_fs_type);
-}
-
-#endif /* !MODULE */
+module_init(init_autofs_fs) 
+module_exit(exit_autofs_fs)
 
 #ifdef DEBUG
 void autofs_say(const char *name, int len)

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