summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorWei Yang <weiyang@linux.vnet.ibm.com>2014-12-15 02:45:00 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2015-01-23 04:02:48 +0100
commit145a2d0427a88e874f85e82e6fc42933a36f5a2b (patch)
tree714280522ba66f8bbb78596af3d3dc4db65ca799 /arch/powerpc/kernel
parentpowernv/iommu: disable IOMMU bypass with param iommu=nobypass (diff)
downloadlinux-145a2d0427a88e874f85e82e6fc42933a36f5a2b.tar.xz
linux-145a2d0427a88e874f85e82e6fc42933a36f5a2b.zip
powerpc/pci: remove the multi-init for pci_dn->phb
pci_dn->phb is set to phb in update_dn_pci_info(), if succeed. This patch removes the duplication of pci_dn->phb initialization. Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com> Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/pci_dn.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/pci_dn.c b/arch/powerpc/kernel/pci_dn.c
index 1f61fab59d9b..83df3075d3df 100644
--- a/arch/powerpc/kernel/pci_dn.c
+++ b/arch/powerpc/kernel/pci_dn.c
@@ -147,10 +147,8 @@ void pci_devs_phb_init_dynamic(struct pci_controller *phb)
/* PHB nodes themselves must not match */
update_dn_pci_info(dn, phb);
pdn = dn->data;
- if (pdn) {
+ if (pdn)
pdn->devfn = pdn->busno = -1;
- pdn->phb = phb;
- }
/* Update dn->phb ptrs for new phb and children devices */
traverse_pci_devices(dn, update_dn_pci_info, phb);