Fix the IRQ assignment with vlynq/pci, thanks sw ! (#1865)
authorFlorian Fainelli <florian@openwrt.org>
Thu, 21 Jun 2007 17:20:19 +0000 (17:20 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 21 Jun 2007 17:20:19 +0000 (17:20 +0000)
SVN-Revision: 7689

target/linux/ar7-2.6/files/arch/mips/ar7/vlynq-pci.c

index a32ea8d44cf416748196ae6705f74d1b4710625e..eb11a3b00238e779f3d0cef8b3d303ba5a7642ba 100644 (file)
@@ -178,9 +178,11 @@ static int vlynq_config_read(struct pci_bus *bus, unsigned int devfn, int where,
        case PCI_INTERRUPT_LINE:
        case PCI_CARDBUS_CIS:
        case PCI_CAPABILITY_LIST:
-       case PCI_INTERRUPT_PIN:
                *val = 0;
                break;
+       case PCI_INTERRUPT_PIN:
+               *val = 1;
+               break;
        default:
                printk("%s: Read of unknown register 0x%x (size %d)\n", 
                       dev->dev.bus_id, where, size);