]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pci: cleanup on duplicate assignment
authorGavin Shan <shangw@linux.vnet.ibm.com>
Wed, 30 May 2012 20:17:29 +0000 (20:17 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 3 Jul 2012 04:14:45 +0000 (14:14 +1000)
commitbd7dd811796e84133da20fce764b2f2bb79c3ac7
tree064834c1ac5464da3f4a2407f43901e33d772cf4
parent61c978d420f86061a5a9ad9990acb6cdf74142e3
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>
arch/powerpc/kernel/pci-common.c