PCI: arm: use generic pci_swizzle_interrupt_pin()
[deliverable/linux.git] / arch / arm / kernel / bios32.c
index 17a59b6e521f84ec983ab90918952409389d5eaf..5c5a0bc0670954afedbfe4f3cc82fdad897d199a 100644 (file)
@@ -491,17 +491,17 @@ EXPORT_SYMBOL(pcibios_bus_to_resource);
  */
 u8 __devinit pci_std_swizzle(struct pci_dev *dev, u8 *pinp)
 {
-       int pin = *pinp - 1;
+       int pin = *pinp;
 
        while (dev->bus->self) {
-               pin = (pin + PCI_SLOT(dev->devfn)) & 3;
+               pin = pci_swizzle_interrupt_pin(dev, pin);
                /*
                 * move up the chain of bridges,
                 * swizzling as we go.
                 */
                dev = dev->bus->self;
        }
-       *pinp = pin + 1;
+       *pinp = pin;
 
        return PCI_SLOT(dev->devfn);
 }
This page took 0.024832 seconds and 5 git commands to generate.