summaryrefslogtreecommitdiff
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-10-07 11:37:12 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-10-07 11:37:12 +0000
commit3b9cb8b673f640473b587c638779913c4755f1cc (patch)
treea5b1e5232309518d8c2c428af716912b6efcd231 /target/linux/ramips
parent13be9155c5de47d1dc1f6d0597bc80b889fac7e5 (diff)
downloadmtk-20170518-3b9cb8b673f640473b587c638779913c4755f1cc.zip
mtk-20170518-3b9cb8b673f640473b587c638779913c4755f1cc.tar.gz
mtk-20170518-3b9cb8b673f640473b587c638779913c4755f1cc.tar.bz2
ramips: fix return value in 'pcibios_map_irq' in the rt288x pci code
SVN-Revision: 17975
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/files/arch/mips/pci/pci-rt288x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/files/arch/mips/pci/pci-rt288x.c b/target/linux/ramips/files/arch/mips/pci/pci-rt288x.c
index 4360e63..1c9df5d 100644
--- a/target/linux/ramips/files/arch/mips/pci/pci-rt288x.c
+++ b/target/linux/ramips/files/arch/mips/pci/pci-rt288x.c
@@ -192,7 +192,7 @@ int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
int irq = -1;
if (dev->bus->number != 0)
- return 0;
+ return irq;
switch (PCI_SLOT(dev->devfn)) {
case 0x00: