summaryrefslogtreecommitdiff
path: root/arch/mips/pci/pci-ip27.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-12-09 16:12:17 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-01-07 11:12:55 -0800
commit30d546dac9420fc238109aec2c6596e044cc6d4c (patch)
tree24cb3872598b32a1fb5baec0c8c1f1cdf46800bd /arch/mips/pci/pci-ip27.c
parentb1c86792a0f3cf24a12c1ac7d452d665d90284b1 (diff)
downloadlinux-3.10-30d546dac9420fc238109aec2c6596e044cc6d4c.tar.gz
linux-3.10-30d546dac9420fc238109aec2c6596e044cc6d4c.tar.bz2
linux-3.10-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-ip27.c')
-rw-r--r--arch/mips/pci/pci-ip27.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/mips/pci/pci-ip27.c b/arch/mips/pci/pci-ip27.c
index f97ab146101..dda6f205866 100644
--- a/arch/mips/pci/pci-ip27.c
+++ b/arch/mips/pci/pci-ip27.c
@@ -146,12 +146,6 @@ int __devinit pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
return 0;
}
-/* Most MIPS systems have straight-forward swizzling needs. */
-static inline u8 bridge_swizzle(u8 pin, u8 slot)
-{
- return (((pin - 1) + slot) % 4) + 1;
-}
-
static inline struct pci_dev *bridge_root_dev(struct pci_dev *dev)
{
while (dev->bus->parent) {