]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/i386/pci/irq.c
[PATCH] PCI: arch/i386/pci/acpi.c: use for_each_pci_dev
[linux-2.6-omap-h63xx.git] / arch / i386 / pci / irq.c
index 19e6f4871d1e7d09bace430522315c5e25fafff9..ee8e01697d96c6a0cb9c5a5a3365d202417ec43d 100644 (file)
@@ -846,7 +846,7 @@ static int pcibios_lookup_irq(struct pci_dev *dev, int assign)
         * reported by the device if possible.
         */
        newirq = dev->irq;
-       if (!((1 << newirq) & mask)) {
+       if (newirq && !((1 << newirq) & mask)) {
                if ( pci_probe & PCI_USE_PIRQ_MASK) newirq = 0;
                else printk(KERN_WARNING "PCI: IRQ %i for device %s doesn't match PIRQ mask - try pci=usepirqmask\n", newirq, pci_name(dev));
        }