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

Next file: linux/fs/binfmt_aout.c
Previous file: linux/fs/affs/super.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/fs/bfs/inode.c linux/fs/bfs/inode.c
@@ -322,16 +322,15 @@
 
 static DECLARE_FSTYPE_DEV( bfs_fs_type, "bfs", bfs_read_super);
 
-#ifdef MODULE
-#define init_bfs_fs init_module
-
-void cleanup_module(void)
+static int __init init_bfs_fs(void)
 {
-	unregister_filesystem(&bfs_fs_type);
+	return register_filesystem(&bfs_fs_type);
 }
-#endif
 
-int __init init_bfs_fs(void)
+static void __exit exit_bfs_fs(void)
 {
-	return register_filesystem(&bfs_fs_type);
+	unregister_filesystem(&bfs_fs_type);
 }
+
+module_init(init_bfs_fs)
+module_exit(exit_bfs_fs)

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