diff options
-rw-r--r-- | arch/sh/drivers/pci/pci.c | 17 |
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 @@ | |||
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <asm/io.h> | 22 | #include <asm/io.h> |
23 | 23 | ||
24 | static u8 __init simple_swizzle(struct pci_dev *dev, u8 *pinp) | ||
25 | { | ||
26 | u8 pin = *pinp; | ||
27 | |||
28 | while (dev->bus->parent) { | ||
29 | pin = pci_swizzle_interrupt_pin(dev, pin); | ||
30 | /* Move up the chain of bridges. */ | ||
31 | dev = dev->bus->self; | ||
32 | } | ||
33 | *pinp = pin; | ||
34 | |||
35 | /* The slot is the slot of the last bridge. */ | ||
36 | return PCI_SLOT(dev->devfn); | ||
37 | } | ||
38 | |||
39 | static int __init pcibios_init(void) | 24 | static int __init pcibios_init(void) |
40 | { | 25 | { |
41 | struct pci_channel *p; | 26 | struct pci_channel *p; |
@@ -56,7 +41,7 @@ static int __init pcibios_init(void) | |||
56 | busno = bus->subordinate + 1; | 41 | busno = bus->subordinate + 1; |
57 | } | 42 | } |
58 | 43 | ||
59 | pci_fixup_irqs(simple_swizzle, pcibios_map_platform_irq); | 44 | pci_fixup_irqs(pci_common_swizzle, pcibios_map_platform_irq); |
60 | 45 | ||
61 | return 0; | 46 | return 0; |
62 | } | 47 | } |