]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/x86/cpu/pci.c
x86: pci: Do not assign irq 0 to pci device
[karo-tx-uboot.git] / arch / x86 / cpu / pci.c
index fdfd5f7b9cc85648227f0e1a1fdc50e3e49d1fde..f8da08035e62bbcfd5454682bfa5b03fbeca19a9 100644 (file)
@@ -172,6 +172,8 @@ void pci_assign_irqs(int bus, int device, u8 irq[4])
                        continue;
 
                line = irq[pin - 1];
+               if (!line)
+                       continue;
 
                debug("Assigning IRQ %d to PCI device %d.%x.%d (INT%c)\n",
                      line, bus, device, func, 'A' + pin - 1);