diff options
author | Gavin Shan <shangw@linux.vnet.ibm.com> | 2012-05-30 22:17:29 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-07-03 06:14:45 +0200 |
commit | 8127e723dab6f6e7949da43f87e5f946c4b99cf2 (patch) | |
tree | 064834c1ac5464da3f4a2407f43901e33d772cf4 /arch/powerpc/kernel/pci-common.c | |
parent | powerpc/numa: Fix OF node refcounting bug (diff) | |
download | linux-8127e723dab6f6e7949da43f87e5f946c4b99cf2.tar.xz linux-8127e723dab6f6e7949da43f87e5f946c4b99cf2.zip |
powerpc/pci: cleanup on duplicate assignment
While creating the PCI root bus through function pci_create_root_bus()
of PCI core, it should have assigned the secondary bus number for the
newly created PCI root bus. Thus we needn't do the explicit assignment
for the secondary bus number again in pcibios_scan_phb().
Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/pci-common.c')
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 8e78e93c8185..0f75bd500404 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c @@ -1646,7 +1646,6 @@ void __devinit pcibios_scan_phb(struct pci_controller *hose) pci_free_resource_list(&resources); return; } - bus->secondary = hose->first_busno; hose->bus = bus; /* Get probe mode and perform scan */ |