/* PCI functions for Integrator This routine handles multiple bridges.  */
static u8 __init integrator_swizzle(struct pci_dev *dev, u8 *pinp)
/* PCI functions for Integrator This routine handles multiple bridges.  */
static u8 __init integrator_swizzle(struct pci_dev *dev, u8 *pinp)
{
	int pin = *pinp;
	if (pin == 0)
		pin = 1;
	while (dev->bus->self) {
		pin = pci_swizzle_interrupt_pin(dev, pin);
		dev = dev->bus->self;
	}
	*pinp = pin;
	return PCI_SLOT(dev->devfn);
}