Commit 258a45d6 authored by William Lee Irwin III's avatar William Lee Irwin III Committed by Greg Kroah-Hartman

[PATCH] fix unused function warning in drivers/block/floppy.c

Move unregister_devfs_entries under the #ifdef MODULE section to
avoid the warning about unused functions.
parent af445d73
...@@ -3977,18 +3977,6 @@ static void __init register_devfs_entries (int drive) ...@@ -3977,18 +3977,6 @@ static void __init register_devfs_entries (int drive)
} }
} }
static void unregister_devfs_entries (int drive)
{
int i;
if (UDP->cmos < NUMBER(default_drive_params)) {
i = 0;
do {
devfs_remove("floppy/%d%s", drive, table[table_sup[UDP->cmos][i]]);
} while (table_sup[UDP->cmos][i++]);
}
}
/* /*
* Floppy Driver initialization * Floppy Driver initialization
* ============================= * =============================
...@@ -4543,6 +4531,18 @@ static void floppy_release_irq_and_dma(void) ...@@ -4543,6 +4531,18 @@ static void floppy_release_irq_and_dma(void)
char *floppy; char *floppy;
static void unregister_devfs_entries (int drive)
{
int i;
if (UDP->cmos < NUMBER(default_drive_params)) {
i = 0;
do {
devfs_remove("floppy/%d%s", drive, table[table_sup[UDP->cmos][i]]);
} while (table_sup[UDP->cmos][i++]);
}
}
static void __init parse_floppy_cfg_string(char *cfg) static void __init parse_floppy_cfg_string(char *cfg)
{ {
char *ptr; char *ptr;
......
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