projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3263263
)
[MIPS] Fix build of several IDE drivers by providing pci_get_legacy_ide_irq
author
Ralf Baechle
<ralf@linux-mips.org>
Sat, 9 Dec 2006 16:12:18 +0000
(16:12 +0000)
committer
Ralf Baechle
<ralf@linux-mips.org>
Sun, 10 Dec 2006 21:52:11 +0000
(21:52 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/pci.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-mips/pci.h
b/include/asm-mips/pci.h
index c4d68bebdca655cc2c1c44f99c4fa0b5b19ca9ea..7f0f120ca07c23b6d42e2bdee1c3081095bf4c07 100644
(file)
--- 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 */