aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/ath79/pci.c4
-rw-r--r--arch/mips/ath79/pci.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/ath79/pci.c b/arch/mips/ath79/pci.c
index c94bcec169ab..d90e07136383 100644
--- a/arch/mips/ath79/pci.c
+++ b/arch/mips/ath79/pci.c
@@ -75,7 +75,9 @@ int __init pcibios_map_irq(const struct pci_dev *dev, uint8_t slot, uint8_t pin)
75 const struct ath79_pci_irq *entry; 75 const struct ath79_pci_irq *entry;
76 76
77 entry = &ath79_pci_irq_map[i]; 77 entry = &ath79_pci_irq_map[i];
78 if (entry->slot == slot && entry->pin == pin) { 78 if (entry->bus == dev->bus->number &&
79 entry->slot == slot &&
80 entry->pin == pin) {
79 irq = entry->irq; 81 irq = entry->irq;
80 break; 82 break;
81 } 83 }
diff --git a/arch/mips/ath79/pci.h b/arch/mips/ath79/pci.h
index 51c6625dcc6d..1d00a3803c37 100644
--- a/arch/mips/ath79/pci.h
+++ b/arch/mips/ath79/pci.h
@@ -14,6 +14,7 @@
14#define _ATH79_PCI_H 14#define _ATH79_PCI_H
15 15
16struct ath79_pci_irq { 16struct ath79_pci_irq {
17 int bus;
17 u8 slot; 18 u8 slot;
18 u8 pin; 19 u8 pin;
19 int irq; 20 int irq;