From 8abb719409c9060a7c0676f76e9182c1e0b8ca46 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sun, 19 Mar 2000 01:28:40 +0000 Subject: Merge with 2.3.99-pre1. --- fs/nls/nls_cp863.c | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) (limited to 'fs/nls/nls_cp863.c') diff --git a/fs/nls/nls_cp863.c b/fs/nls/nls_cp863.c index 06e5361bc..ded7b89ee 100644 --- a/fs/nls/nls_cp863.c +++ b/fs/nls/nls_cp863.c @@ -427,46 +427,27 @@ static unsigned char charset2upper[256] = { 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 = { "cp863", page_uni2charset, charset2uni, charset2lower, charset2upper, - inc_use_count, - dec_use_count, - NULL + THIS_MODULE, }; -int init_nls_cp863(void) +static int __init init_nls_cp863(void) { return register_nls(&table); } -#ifdef MODULE -int init_module(void) -{ - return init_nls_cp863(); -} - - -void cleanup_module(void) +static void __exit exit_nls_cp863(void) { unregister_nls(&table); - return; } -#endif + +module_init(init_nls_cp863) +module_exit(exit_nls_cp863) /* * Overrides for Emacs so that we follow Linus's tabbing style. -- cgit v1.2.3