]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fix unused function warning in drivers/block/floppy.c
authorWilliam Lee Irwin III <wli@holomorphy.com>
Thu, 5 Dec 2002 01:25:15 +0000 (17:25 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 5 Dec 2002 01:25:15 +0000 (17:25 -0800)
Move unregister_devfs_entries under the #ifdef MODULE section to
avoid the warning about unused functions.

drivers/block/floppy.c

index 9a3a42f7001c292209692f883bf1eae2102e9b02..b727a96fcf6ce901db9c4576ba99988e99de1200 100644 (file)
@@ -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;