summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-10-07 11:37:12 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-10-07 11:37:12 +0000
commit8d6b2abeeff88934dde876b86e235aed7f3c3544 (patch)
treeca25da39f5ffc91fc38a7c07ef592f08b52ea090 /target/linux/ramips
parentd5f23286fd8b8c51becd6dc396a740f602f4dadf (diff)
ramips: fix return value in 'pcibios_map_irq' in the rt288x pci code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17975 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 4360e6365..1c9df5df5 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: