Subject: PowerBook ZIP patch

From: Benjamin Herrenschmidt <[email-masked]>
Date: Mon, 11 Jan 1999 20:50:11 +0100

The following patch enables the PowerBook internal ZIP drive. You may
need my other patch to irq.c that fixes bogus interrupt values for the
left bay to work (should be included in Cort's new irq.c when finished).
The right bay should work "as is".

--- linux.orig/drivers/block/ide-probe.c	Thu Jan  7 14:17:32 1999
+++ linux.dev/drivers/block/ide-probe.c	Mon Jan 11 22:44:52 1999
@@ -118,8 +118,14 @@
 				}
 				type = ide_cdrom;	/* Early cdrom models used zero */
 			case ide_cdrom:
-				printk ("CDROM");
 				drive->removable = 1;
+				/* XXX kludge for Apple PowerBook internal zip */
+				if (!strstr(id->model, "CD-ROM") && strstr(id->model, "ZIP")) {
+					printk ("FLOPPY");
+					type = ide_floppy;
+					break;
+				}
+				printk ("CDROM");
 				break;
 			case ide_tape:
 				printk ("TAPE");

-- 
           E-Mail: <mailto:[email-masked]>
BenH.      Web   : <http://calvaweb.calvacom.fr/bh40/>