diff options
Diffstat (limited to 'arch/arm/kernel/bios32.c')
-rw-r--r-- | arch/arm/kernel/bios32.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c index 88e14d74b6de..317da88ae65b 100644 --- a/arch/arm/kernel/bios32.c +++ b/arch/arm/kernel/bios32.c | |||
@@ -363,6 +363,20 @@ void pcibios_fixup_bus(struct pci_bus *bus) | |||
363 | } | 363 | } |
364 | EXPORT_SYMBOL(pcibios_fixup_bus); | 364 | EXPORT_SYMBOL(pcibios_fixup_bus); |
365 | 365 | ||
366 | void pcibios_add_bus(struct pci_bus *bus) | ||
367 | { | ||
368 | struct pci_sys_data *sys = bus->sysdata; | ||
369 | if (sys->add_bus) | ||
370 | sys->add_bus(bus); | ||
371 | } | ||
372 | |||
373 | void pcibios_remove_bus(struct pci_bus *bus) | ||
374 | { | ||
375 | struct pci_sys_data *sys = bus->sysdata; | ||
376 | if (sys->remove_bus) | ||
377 | sys->remove_bus(bus); | ||
378 | } | ||
379 | |||
366 | /* | 380 | /* |
367 | * Swizzle the device pin each time we cross a bridge. If a platform does | 381 | * Swizzle the device pin each time we cross a bridge. If a platform does |
368 | * not provide a swizzle function, we perform the standard PCI swizzling. | 382 | * not provide a swizzle function, we perform the standard PCI swizzling. |
@@ -464,6 +478,8 @@ static void pcibios_init_hw(struct device *parent, struct hw_pci *hw, | |||
464 | sys->swizzle = hw->swizzle; | 478 | sys->swizzle = hw->swizzle; |
465 | sys->map_irq = hw->map_irq; | 479 | sys->map_irq = hw->map_irq; |
466 | sys->align_resource = hw->align_resource; | 480 | sys->align_resource = hw->align_resource; |
481 | sys->add_bus = hw->add_bus; | ||
482 | sys->remove_bus = hw->remove_bus; | ||
467 | INIT_LIST_HEAD(&sys->resources); | 483 | INIT_LIST_HEAD(&sys->resources); |
468 | 484 | ||
469 | if (hw->private_data) | 485 | if (hw->private_data) |