patch-2.3.99-pre1 linux/fs/nls/nls_cp861.c

Next file: linux/fs/nls/nls_cp862.c
Previous file: linux/fs/nls/nls_cp860.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/fs/nls/nls_cp861.c linux/fs/nls/nls_cp861.c
@@ -427,46 +427,27 @@
 	0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, /* 0xf8-0xff */
 };
 
-
-static void inc_use_count(void)
-{
-	MOD_INC_USE_COUNT;
-}
-
-static void dec_use_count(void)
-{
-	MOD_DEC_USE_COUNT;
-}
-
 static struct nls_table table = {
 	"cp861",
 	page_uni2charset,
 	charset2uni,
 	charset2lower,
 	charset2upper,
-	inc_use_count,
-	dec_use_count,
-	NULL
+	THIS_MODULE,
 };
 
-int init_nls_cp861(void)
+static int __init init_nls_cp861(void)
 {
 	return register_nls(&table);
 }
 
-#ifdef MODULE
-int init_module(void)
-{
-	return init_nls_cp861();
-}
-
-
-void cleanup_module(void)
+static void __exit exit_nls_cp861(void)
 {
 	unregister_nls(&table);
-	return;
 }
-#endif
+
+module_init(init_nls_cp861)
+module_exit(exit_nls_cp861)
 
 /*
  * Overrides for Emacs so that we follow Linus's tabbing style.

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