summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2012-09-14 16:34:35 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-17 12:09:10 (GMT)
commita09b027882414f3e75398898905ffb1525056c55 (patch)
tree33001d26106f594714d01d32d98bc52458022803
parent551e2c3cf7733ac141768fc6cbdb05d6633d08a6 (diff)
downloadlinux-fsl-qoriq-a09b027882414f3e75398898905ffb1525056c55.tar.xz
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: Ian Abbott <abbotti@mev.co.uk> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/comedi/drivers/mite.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/mite.c b/drivers/staging/comedi/drivers/mite.c
index 873c2b7..d4f486a 100644
--- a/drivers/staging/comedi/drivers/mite.c
+++ b/drivers/staging/comedi/drivers/mite.c
@@ -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");