Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c686d141 authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Len Brown
Browse files

ACPI: PCI: use generic pci_swizzle_interrupt_pin()



Use the generic pci_swizzle_interrupt_pin() instead of ACPI-specific code.

Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 5f0dccaa
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -319,7 +319,7 @@ static struct acpi_prt_entry *acpi_pci_irq_lookup(struct pci_dev *dev, int pin)
	 */
	 */
	bridge = dev->bus->self;
	bridge = dev->bus->self;
	while (bridge) {
	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) {
		if ((bridge->class >> 8) == PCI_CLASS_BRIDGE_CARDBUS) {
			/* PC card has the same IRQ as its cardbridge */
			/* PC card has the same IRQ as its cardbridge */