PCI: Make pci_rescan_bus handle add_list
authorYinghai Lu <yinghai@kernel.org>
Sat, 21 Jan 2012 10:08:23 +0000 (02:08 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 14 Feb 2012 16:44:53 +0000 (08:44 -0800)
commit9b03088f955552299f50a1f660372698b07ab339
tree4cc4a7d8059186eca4b20a9733f3c0954ff09d96
parent2f320521a0d2d11fb857be09d05e2fbbf3ef8c13
PCI: Make pci_rescan_bus handle add_list

This allows us to allocate resources to hotplug bridges during
remove/rescan.

We need to move the function to setup-bus.c so it can use
__pci_bus_size_bridges and __pci_bus_assign_resources directly to take
the add_list resource tracking list.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/probe.c
drivers/pci/setup-bus.c