From: Ralf Baechle Date: Sat, 9 Dec 2006 16:12:18 +0000 (+0000) Subject: [MIPS] Fix build of several IDE drivers by providing pci_get_legacy_ide_irq X-Git-Tag: v2.6.20-rc1~146^2~33 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b1d221e6292f9fcf9f12d6c9e94ee9470ee2a24;p=linux-2.6 [MIPS] Fix build of several IDE drivers by providing pci_get_legacy_ide_irq Signed-off-by: Ralf Baechle --- diff --git a/include/asm-mips/pci.h b/include/asm-mips/pci.h index c4d68bebdc..7f0f120ca0 100644 --- a/include/asm-mips/pci.h +++ b/include/asm-mips/pci.h @@ -187,4 +187,10 @@ static inline void pcibios_add_platform_entries(struct pci_dev *dev) /* Do platform specific device initialization at pci_enable_device() time */ extern int pcibios_plat_dev_init(struct pci_dev *dev); +/* Chances are this interrupt is wired PC-style ... */ +static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) +{ + return channel ? 15 : 14; +} + #endif /* _ASM_PCI_H */