Commit a09b0278 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: mite: use module_init()/module_exit()

Rename the standard `init_module()` and `cleanup_module()` functions and
make them static.  Use `module_init()` and `module_exit()` to mark the
renamed functions as the module init and exit functions.
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 551e2c3c
......@@ -797,16 +797,17 @@ void mite_dump_regs(struct mite_channel *mite_chan)
EXPORT_SYMBOL(mite_dump_regs);
#endif
#ifdef MODULE
int __init init_module(void)
static int __init mite_module_init(void)
{
return 0;
}
void __exit cleanup_module(void)
static void __exit mite_module_exit(void)
{
}
#endif
module_init(mite_module_init);
module_exit(mite_module_exit);
MODULE_AUTHOR("Comedi http://www.comedi.org");
MODULE_DESCRIPTION("Comedi low-level driver");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment