aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ide/ide-generic.c4
-rw-r--r--include/asm-mips/mach-generic/ide.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ide/ide-generic.c b/drivers/ide/ide-generic.c
index 31d98fec775f..567fd843c7ff 100644
--- a/drivers/ide/ide-generic.c
+++ b/drivers/ide/ide-generic.c
@@ -87,6 +87,10 @@ static int __init ide_generic_init(void)
87 unsigned long io_addr; 87 unsigned long io_addr;
88 int i, rc; 88 int i, rc;
89 89
90#ifdef CONFIG_MIPS
91 if (!ide_probe_legacy())
92 return -ENODEV;
93#endif
90 printk(KERN_INFO DRV_NAME ": please use \"probe_mask=0x3f\" module " 94 printk(KERN_INFO DRV_NAME ": please use \"probe_mask=0x3f\" module "
91 "parameter for probing all legacy ISA IDE ports\n"); 95 "parameter for probing all legacy ISA IDE ports\n");
92 96
diff --git a/include/asm-mips/mach-generic/ide.h b/include/asm-mips/mach-generic/ide.h
index 0f6c251f5fec..71a01c5aec16 100644
--- a/include/asm-mips/mach-generic/ide.h
+++ b/include/asm-mips/mach-generic/ide.h
@@ -72,8 +72,6 @@ static __inline__ int ide_default_irq(unsigned long base)
72 72
73static __inline__ unsigned long ide_default_io_base(int index) 73static __inline__ unsigned long ide_default_io_base(int index)
74{ 74{
75 if (!ide_probe_legacy())
76 return 0;
77 /* 75 /*
78 * If PCI is present then it is not safe to poke around 76 * If PCI is present then it is not safe to poke around
79 * the other legacy IDE ports. Only 0x1f0 and 0x170 are 77 * the other legacy IDE ports. Only 0x1f0 and 0x170 are