summaryrefslogtreecommitdiffstats
path: root/fs/nls/nls_cp855.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-03-19 01:28:40 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-03-19 01:28:40 +0000
commit8abb719409c9060a7c0676f76e9182c1e0b8ca46 (patch)
treeb88cc5a6cd513a04a512b7e6215c873c90a1c5dd /fs/nls/nls_cp855.c
parentf01bd7aeafd95a08aafc9e3636bb26974df69d82 (diff)
Merge with 2.3.99-pre1.
Diffstat (limited to 'fs/nls/nls_cp855.c')
-rw-r--r--fs/nls/nls_cp855.c31
1 files changed, 6 insertions, 25 deletions
diff --git a/fs/nls/nls_cp855.c b/fs/nls/nls_cp855.c
index c0b6eb7fc..e8a9fa2c2 100644
--- a/fs/nls/nls_cp855.c
+++ b/fs/nls/nls_cp855.c
@@ -319,46 +319,27 @@ static unsigned char charset2upper[256] = {
0xf8, 0xfa, 0xfa, 0xfc, 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 = {
"cp855",
page_uni2charset,
charset2uni,
charset2lower,
charset2upper,
- inc_use_count,
- dec_use_count,
- NULL
+ THIS_MODULE,
};
-int init_nls_cp855(void)
+static int __init init_nls_cp855(void)
{
return register_nls(&table);
}
-#ifdef MODULE
-int init_module(void)
-{
- return init_nls_cp855();
-}
-
-
-void cleanup_module(void)
+static void __exit exit_nls_cp855(void)
{
unregister_nls(&table);
- return;
}
-#endif
+
+module_init(init_nls_cp855)
+module_exit(exit_nls_cp855)
/*
* Overrides for Emacs so that we follow Linus's tabbing style.