Skip to content

Commit

Permalink
staging: comedi: mite: use module_init()/module_exit()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Sep 17, 2012
1 parent 551e2c3 commit a09b027
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/staging/comedi/drivers/mite.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a09b027

Please sign in to comment.