diff options
Diffstat (limited to 'arch/sh/drivers/pci/pci.c')
-rw-r--r-- | arch/sh/drivers/pci/pci.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c index d3839e609aac..aea3b6b3033a 100644 --- a/arch/sh/drivers/pci/pci.c +++ b/arch/sh/drivers/pci/pci.c | |||
@@ -21,17 +21,12 @@ | |||
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <asm/io.h> | 22 | #include <asm/io.h> |
23 | 23 | ||
24 | static inline u8 bridge_swizzle(u8 pin, u8 slot) | ||
25 | { | ||
26 | return (((pin - 1) + slot) % 4) + 1; | ||
27 | } | ||
28 | |||
29 | static u8 __init simple_swizzle(struct pci_dev *dev, u8 *pinp) | 24 | static u8 __init simple_swizzle(struct pci_dev *dev, u8 *pinp) |
30 | { | 25 | { |
31 | u8 pin = *pinp; | 26 | u8 pin = *pinp; |
32 | 27 | ||
33 | while (dev->bus->parent) { | 28 | while (dev->bus->parent) { |
34 | pin = bridge_swizzle(pin, PCI_SLOT(dev->devfn)); | 29 | pin = pci_swizzle_interrupt_pin(dev, pin); |
35 | /* Move up the chain of bridges. */ | 30 | /* Move up the chain of bridges. */ |
36 | dev = dev->bus->self; | 31 | dev = dev->bus->self; |
37 | } | 32 | } |