summaryrefslogtreecommitdiff
path: root/arch/x86/pci/numaq_32.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2011-10-29 02:28:08 +0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2012-01-07 00:11:13 +0400
commit46fbade05ca0784ca3c959bd7bf2aae7d81306c2 (patch)
tree3ae7eac1e40acd9d41813a8d44001659f811c8ba /arch/x86/pci/numaq_32.c
parent6361d72b04d1f77736142bc3911a32b814370729 (diff)
downloadlinux-46fbade05ca0784ca3c959bd7bf2aae7d81306c2.tar.xz
x86/PCI: use pci_scan_bus() instead of pci_scan_bus_parented()
This doesn't change any functionality, but it makes a subsequent patch slightly simpler. pci_scan_bus(NULL, ...) and pci_scan_bus_parented() are identical except that pci_scan_bus() also calls pci_bus_add_devices(): pci_scan_bus_parented pci_create_bus pci_scan_child_bus pci_scan_bus pci_create_bus pci_scan_child_bus pci_bus_add_devices All callers of pcibios_scan_root() call pci_bus_add_devices() explicitly, and we don't pass a parent device, so we might as well use pci_scan_bus(). Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch/x86/pci/numaq_32.c')
-rw-r--r--arch/x86/pci/numaq_32.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/pci/numaq_32.c b/arch/x86/pci/numaq_32.c
index 51abf02f9226..83e125b95ca6 100644
--- a/arch/x86/pci/numaq_32.c
+++ b/arch/x86/pci/numaq_32.c
@@ -153,8 +153,6 @@ int __init pci_numaq_init(void)
raw_pci_ops = &pci_direct_conf1_mq;
pci_root_bus = pcibios_scan_root(0);
- if (pci_root_bus)
- pci_bus_add_devices(pci_root_bus);
if (num_online_nodes() > 1)
for_each_online_node(quad) {
if (quad == 0)