x86/PCI: Allocate resources on a per-bus basis for hot-adding root buses
authorYinghai Lu <yinghai@kernel.org>
Sun, 4 Nov 2012 04:39:26 +0000 (21:39 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 7 Jan 2013 22:58:16 +0000 (15:58 -0700)
commit83edc87ce8b284a3d60ab8072e55041c76a68277
treeef8b9a395f563d97e433245d293d92a93d50ac96
parentc7f4bbc92feee2986212ef3b42c806e2257197dc
x86/PCI: Allocate resources on a per-bus basis for hot-adding root buses

Previously pcibios_allocate_resources() allocated resources at boot-time
for all PCI devices using for_each_pci_dev().  This patch changes
pcibios_allocate_resources() so we can specify a bus, so we can do
similar allocation when hot-adding a root bus.

[bhelgaas: changelog]
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/x86/pci/i386.c