Commit 7afea3bc authored by Jon Schindler's avatar Jon Schindler Committed by Linus Torvalds

drivers/block/floppy.c: replace init_module&cleanup_module with module_init&module_exit

Replace init_module and cleanup_module with static functions and
module_init/module_exit.
Signed-off-by: default avatarJon Schindler <jkschind@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5045bcae
...@@ -4526,14 +4526,15 @@ static void __init parse_floppy_cfg_string(char *cfg) ...@@ -4526,14 +4526,15 @@ static void __init parse_floppy_cfg_string(char *cfg)
} }
} }
int __init init_module(void) static int __init floppy_module_init(void)
{ {
if (floppy) if (floppy)
parse_floppy_cfg_string(floppy); parse_floppy_cfg_string(floppy);
return floppy_init(); return floppy_init();
} }
module_init(floppy_module_init);
void cleanup_module(void) static void __exit floppy_module_exit(void)
{ {
int drive; int drive;
...@@ -4562,6 +4563,7 @@ void cleanup_module(void) ...@@ -4562,6 +4563,7 @@ void cleanup_module(void)
/* eject disk, if any */ /* eject disk, if any */
fd_eject(0); fd_eject(0);
} }
module_exit(floppy_module_exit);
module_param(floppy, charp, 0); module_param(floppy, charp, 0);
module_param(FLOPPY_IRQ, int, 0); module_param(FLOPPY_IRQ, int, 0);
......
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