diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2009-02-17 15:49:10 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-03-17 01:56:30 -0400 |
commit | c686d141c7c668ac186015841a1ccd285a1f3362 (patch) | |
tree | bd49a8af982fdf602635bfdcd68012e9d8756810 /drivers | |
parent | 5f0dccaa81e239477413d0def1133850530f1bbe (diff) |
ACPI: PCI: use generic pci_swizzle_interrupt_pin()
Use the generic pci_swizzle_interrupt_pin() instead of ACPI-specific code.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/pci_irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c index 891bdf6679f3..be6b9093f8df 100644 --- a/drivers/acpi/pci_irq.c +++ b/drivers/acpi/pci_irq.c | |||
@@ -319,7 +319,7 @@ static struct acpi_prt_entry *acpi_pci_irq_lookup(struct pci_dev *dev, int pin) | |||
319 | */ | 319 | */ |
320 | bridge = dev->bus->self; | 320 | bridge = dev->bus->self; |
321 | while (bridge) { | 321 | while (bridge) { |
322 | pin = (((pin - 1) + PCI_SLOT(dev->devfn)) % 4) + 1; | 322 | pin = pci_swizzle_interrupt_pin(dev, pin); |
323 | 323 | ||
324 | if ((bridge->class >> 8) == PCI_CLASS_BRIDGE_CARDBUS) { | 324 | if ((bridge->class >> 8) == PCI_CLASS_BRIDGE_CARDBUS) { |
325 | /* PC card has the same IRQ as its cardbridge */ | 325 | /* PC card has the same IRQ as its cardbridge */ |