summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBjorn Helgaas2008-12-17 05:37:15 +0100
committerJesse Barnes2009-01-07 20:13:15 +0100
commite55823492dde22f841ec7deeb4d61f195ecb7ed4 (patch)
tree942cd5b44bed4acb6f64d081418348d2cfd561a7 /arch
parentPCI: mips: use generic INTx swizzle from PCI core (diff)
downloadkernel-qcow2-linux-e55823492dde22f841ec7deeb4d61f195ecb7ed4.tar.gz
kernel-qcow2-linux-e55823492dde22f841ec7deeb4d61f195ecb7ed4.tar.xz
kernel-qcow2-linux-e55823492dde22f841ec7deeb4d61f195ecb7ed4.zip
PCI: sh: use generic INTx swizzle from PCI core
Use the generic pci_common_swizzle() instead of arch-specific code. Note that pci_common_swizzle() loops based on dev->bus->self, not dev->bus->parent as the sh simple_swizzle() did. I think they are equivalent for this purpose. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/drivers/pci/pci.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c
index aea3b6b3033a..e36c7b870861 100644
--- a/arch/sh/drivers/pci/pci.c
+++ b/arch/sh/drivers/pci/pci.c
@@ -21,21 +21,6 @@
#include <linux/init.h>
#include <asm/io.h>
-static u8 __init simple_swizzle(struct pci_dev *dev, u8 *pinp)
-{
- u8 pin = *pinp;
-
- while (dev->bus->parent) {
- pin = pci_swizzle_interrupt_pin(dev, pin);
- /* Move up the chain of bridges. */
- dev = dev->bus->self;
- }
- *pinp = pin;
-
- /* The slot is the slot of the last bridge. */
- return PCI_SLOT(dev->devfn);
-}
-
static int __init pcibios_init(void)
{
struct pci_channel *p;
@@ -56,7 +41,7 @@ static int __init pcibios_init(void)
busno = bus->subordinate + 1;
}
- pci_fixup_irqs(simple_swizzle, pcibios_map_platform_irq);
+ pci_fixup_irqs(pci_common_swizzle, pcibios_map_platform_irq);
return 0;
}