patch-2.3.46 linux/drivers/block/ide-floppy.c
Next file: linux/drivers/block/ide-probe.c
Previous file: linux/drivers/block/ide-disk.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Wed Feb 16 15:42:05 2000
- Orig file:
v2.3.45/linux/drivers/block/ide-floppy.c
- Orig date:
Thu Feb 10 17:11:06 2000
diff -u --recursive --new-file v2.3.45/linux/drivers/block/ide-floppy.c linux/drivers/block/ide-floppy.c
@@ -1549,6 +1549,15 @@
(void) idefloppy_get_capacity (drive);
idefloppy_add_settings(drive);
+ for (i = 0; i < MAX_DRIVES; ++i) {
+ ide_hwif_t *hwif = HWIF(drive);
+
+ if (drive != &hwif->drives[i]) continue;
+ hwif->gd->de_arr[i] = drive->de;
+ if (drive->removable)
+ hwif->gd->flags[i] |= GENHD_FL_REMOVABLE;
+ break;
+ }
}
static int idefloppy_cleanup (ide_drive_t *drive)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)