patch-2.4.0-test2 linux/drivers/block/swim3.c
Next file: linux/drivers/block/xd.c
Previous file: linux/drivers/block/smart1,2.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Tue Jun 20 07:24:52 2000
- Orig file:
v2.4.0-test1/linux/drivers/block/swim3.c
- Orig date:
Wed Feb 16 17:03:51 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/block/swim3.c linux/drivers/block/swim3.c
@@ -801,6 +801,16 @@
return err;
}
+int swim3_fd_eject(int devnum)
+{
+ if (devnum >= floppy_count)
+ return -ENODEV;
+ /* Do not check this - this function should ONLY be called early
+ * in the boot process! */
+ /* if (floppy_states[devnum].ref_count != 1) return -EBUSY; */
+ return fd_eject(&floppy_states[devnum]);
+}
+
static struct floppy_struct floppy_type =
{ 2880,18,2,80,0,0x1B,0x00,0xCF,0x6C,NULL }; /* 7 1.44MB 3.5" */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)