Commit eb69e2aa authored by Andy Grover's avatar Andy Grover

ACPI: Use dev->devfn instead of bridge->devfn to determine the pin when

      trying to derive a device's irq from its parent (Ville Syrjala)
parent e45e4dfc
...@@ -286,7 +286,7 @@ acpi_pci_irq_derive ( ...@@ -286,7 +286,7 @@ acpi_pci_irq_derive (
* PCI interrupt routing entry (a.k.a. the "bridge swizzle"). * PCI interrupt routing entry (a.k.a. the "bridge swizzle").
*/ */
while (!irq && (bridge = bridge->bus->self)) { while (!irq && (bridge = bridge->bus->self)) {
pin = (pin + PCI_SLOT(bridge->devfn)) % 4; pin = (pin + PCI_SLOT(dev->devfn)) % 4;
irq = acpi_pci_irq_lookup(0, bridge->bus->number, PCI_SLOT(bridge->devfn), pin); irq = acpi_pci_irq_lookup(0, bridge->bus->number, PCI_SLOT(bridge->devfn), pin);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment