patch-2.3.13 linux/fs/binfmt_em86.c

Next file: linux/fs/binfmt_misc.c
Previous file: linux/fs/binfmt_elf.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.12/linux/fs/binfmt_em86.c linux/fs/binfmt_em86.c
@@ -105,27 +105,18 @@
 }
 
 struct linux_binfmt em86_format = {
-	NULL,
-#ifndef MODULE
-	NULL,
-#else
-	&__this_module,
-#endif
-	load_em86, NULL, NULL, 0
+	NULL, THIS_MODULE, load_em86, NULL, NULL, 0
 };
 
-int __init init_em86_binfmt(void)
+static int __init init_em86_binfmt(void)
 {
 	return register_binfmt(&em86_format);
 }
 
-#ifdef MODULE
-int init_module(void)
+static void __exit exit_em86_binfmt(void)
 {
-	return init_em86_binfmt();
-}
-
-void cleanup_module( void) {
 	unregister_binfmt(&em86_format);
 }
-#endif
+
+module_init(init_em86_binfmt)
+module_exit(exit_em86_binfmt)

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