patch-2.2.17 linux/drivers/block/swim3.c

Next file: linux/drivers/cdrom/cdrom.c
Previous file: linux/drivers/block/smart1,2.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.16/drivers/block/swim3.c linux/drivers/block/swim3.c
@@ -808,6 +808,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)