PCI: pciehp: cleanup flow in pciehp_configure_device
authorYinghai Lu <yinghai@kernel.org>
Fri, 22 Jan 2010 09:02:26 +0000 (01:02 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 23 Feb 2010 00:17:24 +0000 (16:17 -0800)
commit9789ac979b6b6ae6cc09f7b29c88e95ecb14ec39
treead77f238e5ee0971767079276b1fd43e11457264
parent6841ec681a88b66651e4563040b9c7a7ad25d7b5
PCI: pciehp: cleanup flow in pciehp_configure_device

Move bus_size_bridges and assign resources out of pciehp_add_bridge()
and do them all together, one time, including slot bridge, to avoid to
calling assign resources several times when there are several bridges
under the slot bridge.  Using pci_assign_unassigned_bridge_resources.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Reviewed-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp_pci.c