summaryrefslogtreecommitdiffstats
path: root/fs/nls/nls_iso8859-6.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nls/nls_iso8859-6.c')
-rw-r--r--fs/nls/nls_iso8859-6.c31
1 files changed, 6 insertions, 25 deletions
diff --git a/fs/nls/nls_iso8859-6.c b/fs/nls/nls_iso8859-6.c
index 78b0203cf..877fde7cc 100644
--- a/fs/nls/nls_iso8859-6.c
+++ b/fs/nls/nls_iso8859-6.c
@@ -243,46 +243,27 @@ static unsigned char charset2upper[256] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 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 = {
"iso8859-6",
page_uni2charset,
charset2uni,
charset2lower,
charset2upper,
- inc_use_count,
- dec_use_count,
- NULL
+ THIS_MODULE,
};
-int init_nls_iso8859_6(void)
+static int __init init_nls_iso8859_6(void)
{
return register_nls(&table);
}
-#ifdef MODULE
-int init_module(void)
-{
- return init_nls_iso8859_6();
-}
-
-
-void cleanup_module(void)
+static void __exit exit_nls_iso8859_6(void)
{
unregister_nls(&table);
- return;
}
-#endif
+
+module_init(init_nls_iso8859_6)
+module_exit(exit_nls_iso8859_6)
/*
* Overrides for Emacs so that we follow Linus's tabbing style.