diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-12-10 00:12:17 +0100 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-07 20:12:55 +0100 |
commit | 30d546dac9420fc238109aec2c6596e044cc6d4c (patch) | |
tree | 24cb3872598b32a1fb5baec0c8c1f1cdf46800bd /arch/mips/pci/pci.c | |
parent | PCI: x86: use generic pci_swizzle_interrupt_pin() (diff) | |
download | linux-30d546dac9420fc238109aec2c6596e044cc6d4c.tar.xz linux-30d546dac9420fc238109aec2c6596e044cc6d4c.zip |
PCI: mips: use generic pci_swizzle_interrupt_pin()
Use the generic pci_swizzle_interrupt_pin() instead of arch-specific code.
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch/mips/pci/pci.c')
-rw-r--r-- | arch/mips/pci/pci.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c index 62cae740e250..fa63dc25125d 100644 --- a/arch/mips/pci/pci.c +++ b/arch/mips/pci/pci.c @@ -149,19 +149,12 @@ out: "Skipping PCI bus scan due to resource conflict\n"); } -/* Most MIPS systems have straight-forward swizzling needs. */ - -static inline u8 bridge_swizzle(u8 pin, u8 slot) -{ - return (((pin - 1) + slot) % 4) + 1; -} - static u8 __init common_swizzle(struct pci_dev *dev, u8 *pinp) { u8 pin = *pinp; while (dev->bus->parent) { - pin = bridge_swizzle(pin, PCI_SLOT(dev->devfn)); + pin = pci_swizzle_interrupt_pin(dev, pin); /* Move up the chain of bridges. */ dev = dev->bus->self; } |