Commit 5b1d221e6292f9fcf9f12d6c9e94ee9470ee2a24

Authored by Ralf Baechle
1 parent 3263263f70

[MIPS] Fix build of several IDE drivers by providing pci_get_legacy_ide_irq

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff

include/asm-mips/pci.h
... ... @@ -187,5 +187,11 @@
187 187 /* Do platform specific device initialization at pci_enable_device() time */
188 188 extern int pcibios_plat_dev_init(struct pci_dev *dev);
189 189  
  190 +/* Chances are this interrupt is wired PC-style ... */
  191 +static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
  192 +{
  193 + return channel ? 15 : 14;
  194 +}
  195 +
190 196 #endif /* _ASM_PCI_H */