diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-12-09 18:12:37 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-07 14:12:54 -0500 |
commit | b1c86792a0f3cf24a12c1ac7d452d665d90284b1 (patch) | |
tree | 0ef20106a3fd4169ff04e9c5fd20542bfaf5383e /arch/x86/pci/irq.c | |
parent | 1be9baa09340bbe3329aab3bd0d41076f59c8f22 (diff) |
PCI: x86: use generic pci_swizzle_interrupt_pin()
Use the generic pci_swizzle_interrupt_pin() instead of arch-specific code.
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: hpa@zytor.com
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch/x86/pci/irq.c')
-rw-r--r-- | arch/x86/pci/irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/pci/irq.c b/arch/x86/pci/irq.c index e1d605bfeb47..4064345cf144 100644 --- a/arch/x86/pci/irq.c +++ b/arch/x86/pci/irq.c | |||
@@ -1068,7 +1068,7 @@ static void __init pcibios_fixup_irqs(void) | |||
1068 | struct pci_dev *bridge = dev->bus->self; | 1068 | struct pci_dev *bridge = dev->bus->self; |
1069 | int bus; | 1069 | int bus; |
1070 | 1070 | ||
1071 | pin = (((pin - 1) + PCI_SLOT(dev->devfn)) % 4) + 1; | 1071 | pin = pci_swizzle_interrupt_pin(dev, pin); |
1072 | bus = bridge->bus->number; | 1072 | bus = bridge->bus->number; |
1073 | irq = IO_APIC_get_PCI_irq_vector(bus, | 1073 | irq = IO_APIC_get_PCI_irq_vector(bus, |
1074 | PCI_SLOT(bridge->devfn), pin - 1); | 1074 | PCI_SLOT(bridge->devfn), pin - 1); |
@@ -1232,7 +1232,7 @@ static int pirq_enable_irq(struct pci_dev *dev) | |||
1232 | while (irq < 0 && dev->bus->parent) { /* go back to the bridge */ | 1232 | while (irq < 0 && dev->bus->parent) { /* go back to the bridge */ |
1233 | struct pci_dev *bridge = dev->bus->self; | 1233 | struct pci_dev *bridge = dev->bus->self; |
1234 | 1234 | ||
1235 | pin = (((pin - 1) + PCI_SLOT(dev->devfn)) % 4) + 1; | 1235 | pin = pci_swizzle_interrupt_pin(dev, pin); |
1236 | irq = IO_APIC_get_PCI_irq_vector(bridge->bus->number, | 1236 | irq = IO_APIC_get_PCI_irq_vector(bridge->bus->number, |
1237 | PCI_SLOT(bridge->devfn), pin - 1); | 1237 | PCI_SLOT(bridge->devfn), pin - 1); |
1238 | if (irq >= 0) | 1238 | if (irq >= 0) |