patch-2.3.16 linux/include/asm-ppc/ide.h
Next file: linux/include/asm-ppc/init.h
Previous file: linux/include/asm-ppc/gemini_serial.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Aug 31 11:36:43 1999
- Orig file:
v2.3.15/linux/include/asm-ppc/ide.h
- Orig date:
Fri Aug 6 11:16:54 1999
diff -u --recursive --new-file v2.3.15/linux/include/asm-ppc/ide.h linux/include/asm-ppc/ide.h
@@ -109,10 +109,14 @@
#ifndef CONFIG_BLK_DEV_IDEPCI
hw_regs_t hw;
int index;
+ ide_ioreg_t base;
- for(index = 0; index < MAX_HWIFS; index++) {
- ide_init_hwif_ports(&hw, ide_default_io_base(index), 0, NULL);
- hw.irq = ide_default_irq(ide_default_io_base(index));
+ for (index = 0; index < MAX_HWIFS; index++) {
+ base = ide_default_io_base(index);
+ if (base == 0)
+ continue;
+ ide_init_hwif_ports(&hw, base, 0, NULL);
+ hw.irq = ide_default_irq(base);
ide_register_hw(&hw, NULL);
}
#endif /* CONFIG_BLK_DEV_IDEPCI */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)