summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Lee Irwin III <wli@holomorphy.com>2002-12-04 17:25:15 -0800
committerGreg Kroah-Hartman <greg@kroah.com>2002-12-04 17:25:15 -0800
commit258a45d6d87e623a15098542d985a292f467554f (patch)
treefd81ad4255277d52dc58b2fda28c4fd6213604d8
parentaf445d73182de6c4e8c6d739f2e01f4a80228d1b (diff)
[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.
-rw-r--r--drivers/block/floppy.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index 9a3a42f7001c..b727a96fcf6c 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -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
* =============================
@@ -4543,6 +4531,18 @@ static void floppy_release_irq_and_dma(void)
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)
{
char *ptr;