Skip to content

Commit

Permalink
drivers/block/floppy.c: replace init_module&cleanup_module with modul…
Browse files Browse the repository at this point in the history
…e_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>
  • Loading branch information
Jon Schindler authored and Linus Torvalds committed Apr 29, 2008
1 parent 5045bca commit 7afea3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7afea3b

Please sign in to comment.