patch-2.2.17 linux/drivers/block/ide-probe.c
Next file: linux/drivers/block/ide-proc.c
Previous file: linux/drivers/block/ide-pmac.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Mon Sep 4 18:39:16 2000
- Orig file:
v2.2.16/drivers/block/ide-probe.c
- Orig date:
Mon Sep 4 18:37:28 2000
diff -u --recursive --new-file v2.2.16/drivers/block/ide-probe.c linux/drivers/block/ide-probe.c
@@ -109,8 +109,16 @@
}
type = ide_cdrom; /* Early cdrom models used zero */
case ide_cdrom:
- printk ("CDROM");
drive->removable = 1;
+#ifdef CONFIG_PPC
+ /* kludge for Apple PowerBook internal zip */
+ if (!strstr(id->model, "CD-ROM") && strstr(id->model, "ZIP")) {
+ printk ("FLOPPY");
+ type = ide_floppy;
+ break;
+ }
+#endif
+ printk ("CDROM");
break;
case ide_tape:
printk ("TAPE");
@@ -819,7 +827,12 @@
for (index = 0; index < MAX_HWIFS; ++index)
ide_unregister(index);
- return ideprobe_init();
+ ideprobe_init();
+#ifdef CONFIG_PROC_FS
+ proc_ide_destroy(); /* Avoid multiple entry in /proc */
+ proc_ide_create();
+#endif
+ return 0;
}
void cleanup_module (void)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)