aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorGavin Shan <shangw@linux.vnet.ibm.com>2013-07-31 04:43:56 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-08-14 00:57:36 -0400
commit1a85d66bcc90e2cbdf04f70d6586b82532142e85 (patch)
tree5e2eafccd14fe2b76f9ac5dec7e27ed2df66de00 /arch/powerpc/kernel
parentc35d2a8c5f68e53ccbb4c0f64316a22af1729fca (diff)
powerpc/pci: Remove duplicate check in pcibios_fixup_bus()
pci_read_bridge_bases() already checks if the PCI bus is root bus or not, so we needn't do same check in pcibios_fixup_bus() and just remove it. 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')
-rw-r--r--arch/powerpc/kernel/pci-common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index 22fe40140e43..ec6c9db7b392 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -1055,8 +1055,7 @@ void pcibios_fixup_bus(struct pci_bus *bus)
1055 * bases. This is -not- called when generating the PCI tree from 1055 * bases. This is -not- called when generating the PCI tree from
1056 * the OF device-tree. 1056 * the OF device-tree.
1057 */ 1057 */
1058 if (bus->self != NULL) 1058 pci_read_bridge_bases(bus);
1059 pci_read_bridge_bases(bus);
1060 1059
1061 /* Now fixup the bus bus */ 1060 /* Now fixup the bus bus */
1062 pcibios_setup_bus_self(bus); 1061 pcibios_setup_bus_self(bus);