patch-2.4.0-test5 linux/include/asm-arm/arch-arc/ide.h
Next file: linux/include/asm-arm/arch-arc/oldlatches.h
Previous file: linux/include/asm-arm/arch-arc/hardware.h
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Tue Jul 18 22:43:24 2000
- Orig file:
v2.4.0-test4/linux/include/asm-arm/arch-arc/ide.h
- Orig date:
Mon Jul 10 16:47:26 2000
diff -u --recursive --new-file v2.4.0-test4/linux/include/asm-arm/arch-arc/ide.h linux/include/asm-arm/arch-arc/ide.h
@@ -11,8 +11,6 @@
* 01-07-1998 RMK Added new ide_ioregspec_t
* 29-07-1998 RMK Major re-work of IDE architecture specific code
*/
-
-#include <linux/config.h>
#include <asm/irq.h>
/*
@@ -40,13 +38,13 @@
*/
static __inline__ void ide_init_default_hwifs(void)
{
-#ifdef CONFIG_ARCH_A5K
- hw_regs_t hw;
+ if (machine_is_a5k()) {
+ hw_regs_t hw;
- memset(&hw, 0, sizeof(hw));
+ memset(&hw, 0, sizeof(hw));
- ide_init_hwif_ports(&hw, 0x1f0, 0x3f6, NULL);
- hw.irq = IRQ_HARDDISK;
- ide_register_hw(&hw, NULL);
-#endif
+ ide_init_hwif_ports(&hw, 0x1f0, 0x3f6, NULL);
+ hw.irq = IRQ_HARDDISK;
+ ide_register_hw(&hw, NULL);
+ }
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)