Merge git://git.infradead.org/iommu-2.6
[sfrench/cifs-2.6.git] / drivers / acpi / pci_irq.c
index f93667ee43dce6158f7690e56a859c3889a2c4e7..51b9f8280f887cfd6649a39446e7e081d52fe3b6 100644 (file)
@@ -319,7 +319,7 @@ static struct acpi_prt_entry *acpi_pci_irq_lookup(struct pci_dev *dev, int pin)
         */
        bridge = dev->bus->self;
        while (bridge) {
-               pin = (((pin - 1) + PCI_SLOT(dev->devfn)) % 4) + 1;
+               pin = pci_swizzle_interrupt_pin(dev, pin);
 
                if ((bridge->class >> 8) == PCI_CLASS_BRIDGE_CARDBUS) {
                        /* PC card has the same IRQ as its cardbridge */