diff options
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 7744ac9d1ff9..f4c7db572a16 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -215,38 +215,6 @@ static inline void ide_std_init_ports(hw_regs_t *hw, | |||
215 | # define ide_init_default_irq(base) (0) | 215 | # define ide_init_default_irq(base) (0) |
216 | #endif | 216 | #endif |
217 | 217 | ||
218 | #ifdef CONFIG_IDE_ARCH_OBSOLETE_INIT | ||
219 | static inline void ide_init_hwif_ports(hw_regs_t *hw, | ||
220 | unsigned long io_addr, | ||
221 | unsigned long ctl_addr, | ||
222 | int *irq) | ||
223 | { | ||
224 | if (!ctl_addr) | ||
225 | ide_std_init_ports(hw, io_addr, ide_default_io_ctl(io_addr)); | ||
226 | else | ||
227 | ide_std_init_ports(hw, io_addr, ctl_addr); | ||
228 | |||
229 | if (irq) | ||
230 | *irq = 0; | ||
231 | |||
232 | hw->io_ports[IDE_IRQ_OFFSET] = 0; | ||
233 | |||
234 | #ifdef CONFIG_PPC32 | ||
235 | if (ppc_ide_md.ide_init_hwif) | ||
236 | ppc_ide_md.ide_init_hwif(hw, io_addr, ctl_addr, irq); | ||
237 | #endif | ||
238 | } | ||
239 | #else | ||
240 | static inline void ide_init_hwif_ports(hw_regs_t *hw, | ||
241 | unsigned long io_addr, | ||
242 | unsigned long ctl_addr, | ||
243 | int *irq) | ||
244 | { | ||
245 | if (io_addr || ctl_addr) | ||
246 | printk(KERN_WARNING "%s: must not be called\n", __FUNCTION__); | ||
247 | } | ||
248 | #endif /* CONFIG_IDE_ARCH_OBSOLETE_INIT */ | ||
249 | |||
250 | /* Currently only m68k, apus and m8xx need it */ | 218 | /* Currently only m68k, apus and m8xx need it */ |
251 | #ifndef IDE_ARCH_ACK_INTR | 219 | #ifndef IDE_ARCH_ACK_INTR |
252 | # define ide_ack_intr(hwif) (1) | 220 | # define ide_ack_intr(hwif) (1) |