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: Jon Schindler <jkschind@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
5045bcae0f
commit
7afea3bcb1
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
parse_floppy_cfg_string(floppy);
|
||||
return floppy_init();
|
||||
}
|
||||
module_init(floppy_module_init);
|
||||
|
||||
void cleanup_module(void)
|
||||
static void __exit floppy_module_exit(void)
|
||||
{
|
||||
int drive;
|
||||
|
||||
|
@ -4562,6 +4563,7 @@ void cleanup_module(void)
|
|||
/* eject disk, if any */
|
||||
fd_eject(0);
|
||||
}
|
||||
module_exit(floppy_module_exit);
|
||||
|
||||
module_param(floppy, charp, 0);
|
||||
module_param(FLOPPY_IRQ, int, 0);
|
||||
|
|
Loading…
Reference in a new issue