diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-12-06 17:15:57 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-12-06 17:15:57 +0000 |
commit | f435a91e66e7776f0c73fca5af3cb87c61130ed6 (patch) | |
tree | 439a0e66278ce743d750300d816b561e69bccbe8 /arch/mips/pci | |
parent | 7e1fb765c613298d861f80fa18af26df87a4ec19 (diff) | |
download | linux-f435a91e66e7776f0c73fca5af3cb87c61130ed6.tar.gz linux-f435a91e66e7776f0c73fca5af3cb87c61130ed6.tar.bz2 linux-f435a91e66e7776f0c73fca5af3cb87c61130ed6.zip |
[MIPS] BCM1480: Fix interrupt routing, take 2.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/pci')
-rw-r--r-- | arch/mips/pci/pci-bcm1480.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/pci/pci-bcm1480.c b/arch/mips/pci/pci-bcm1480.c index bc647cb77298..47f316c86ab1 100644 --- a/arch/mips/pci/pci-bcm1480.c +++ b/arch/mips/pci/pci-bcm1480.c @@ -76,7 +76,10 @@ static inline void WRITECFG32(u32 addr, u32 data) int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) { - return K_BCM1480_INT_PCI_INTA + pin; + if (pin == 0) + return -1; + + return K_BCM1480_INT_PCI_INTA - 1 + pin; } /* Do platform specific device initialization at pci_enable_device() time */ |