diff options
author | Gavin Shan <shangw@linux.vnet.ibm.com> | 2013-07-31 10:43:56 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-14 06:57:36 +0200 |
commit | 1a85d66bcc90e2cbdf04f70d6586b82532142e85 (patch) | |
tree | 5e2eafccd14fe2b76f9ac5dec7e27ed2df66de00 /arch/powerpc | |
parent | powerpc/powernv: Needn't IO segment map for PHB3 (diff) | |
download | linux-1a85d66bcc90e2cbdf04f70d6586b82532142e85.tar.xz linux-1a85d66bcc90e2cbdf04f70d6586b82532142e85.zip |
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')
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 3 |
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) * bases. This is -not- called when generating the PCI tree from * the OF device-tree. */ - if (bus->self != NULL) - pci_read_bridge_bases(bus); + pci_read_bridge_bases(bus); /* Now fixup the bus bus */ pcibios_setup_bus_self(bus); |