aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-versatile/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-versatile/pci.c')
-rw-r--r--arch/arm/mach-versatile/pci.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/arch/arm/mach-versatile/pci.c b/arch/arm/mach-versatile/pci.c
index d2268be8c34c..15c6a00000ec 100644
--- a/arch/arm/mach-versatile/pci.c
+++ b/arch/arm/mach-versatile/pci.c
@@ -303,12 +303,6 @@ int __init pci_versatile_setup(int nr, struct pci_sys_data *sys)
303} 303}
304 304
305 305
306struct pci_bus * __init pci_versatile_scan_bus(int nr, struct pci_sys_data *sys)
307{
308 return pci_scan_root_bus(NULL, sys->busnr, &pci_versatile_ops, sys,
309 &sys->resources);
310}
311
312void __init pci_versatile_preinit(void) 306void __init pci_versatile_preinit(void)
313{ 307{
314 pcibios_min_io = 0x44000000; 308 pcibios_min_io = 0x44000000;
@@ -339,19 +333,16 @@ static int __init versatile_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
339 * 26 1 29 333 * 26 1 29
340 * 27 1 30 334 * 27 1 30
341 */ 335 */
342 irq = 27 + ((slot + pin - 1) & 3); 336 irq = 27 + ((slot - 24 + pin - 1) & 3);
343
344 printk("PCI map irq: slot %d, pin %d, devslot %d, irq: %d\n",slot,pin,devslot,irq);
345 337
346 return irq; 338 return irq;
347} 339}
348 340
349static struct hw_pci versatile_pci __initdata = { 341static struct hw_pci versatile_pci __initdata = {
350 .swizzle = NULL,
351 .map_irq = versatile_map_irq, 342 .map_irq = versatile_map_irq,
352 .nr_controllers = 1, 343 .nr_controllers = 1,
344 .ops = &pci_versatile_ops,
353 .setup = pci_versatile_setup, 345 .setup = pci_versatile_setup,
354 .scan = pci_versatile_scan_bus,
355 .preinit = pci_versatile_preinit, 346 .preinit = pci_versatile_preinit,
356}; 347};
357 348