PCI: Clean up usages of pci_bus->is_added
authorJiang Liu <liuj97@gmail.com>
Fri, 12 Apr 2013 05:44:16 +0000 (05:44 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 12 Apr 2013 21:38:25 +0000 (15:38 -0600)
commit981cf9ea9a6a6c422e51fc04bedad00b7792ccbc
tree33efdbede82837af7a0034f809ffb484a326dab5
parent1e89d268e7a83d8388d4d09d3f2089ced72cc15f
PCI: Clean up usages of pci_bus->is_added

Now pci_bus->is_added is only used to guard invoking of
pcibios_fixup_bus() in pci_scan_child_bus(), so just set
it directly after the fixups and remove the other test
and set in pci_bus_add_devices().

[bhelgaas: changelog]
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Yinghai Lu <yinghai@kernel.org>
drivers/pci/bus.c
drivers/pci/probe.c