aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/pseries/iommu.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch/powerpc/platforms/pseries/iommu.c
index 9fecb313a4c9..0dbadbb34f3a 100644
--- a/arch/powerpc/platforms/pseries/iommu.c
+++ b/arch/powerpc/platforms/pseries/iommu.c
@@ -455,9 +455,6 @@ static void pci_dma_bus_setup_pSeriesLP(struct pci_bus *bus)
455 ppci->iommu_table = iommu_init_table(tbl, ppci->phb->node); 455 ppci->iommu_table = iommu_init_table(tbl, ppci->phb->node);
456 pr_debug(" created table: %p\n", ppci->iommu_table); 456 pr_debug(" created table: %p\n", ppci->iommu_table);
457 } 457 }
458
459 if (pdn != dn)
460 PCI_DN(dn)->iommu_table = ppci->iommu_table;
461} 458}
462 459
463 460
@@ -571,8 +568,7 @@ static int iommu_reconfig_notifier(struct notifier_block *nb, unsigned long acti
571 568
572 switch (action) { 569 switch (action) {
573 case PSERIES_RECONFIG_REMOVE: 570 case PSERIES_RECONFIG_REMOVE:
574 if (pci && pci->iommu_table && 571 if (pci && pci->iommu_table)
575 of_get_property(np, "ibm,dma-window", NULL))
576 iommu_free_table(pci->iommu_table, np->full_name); 572 iommu_free_table(pci->iommu_table, np->full_name);
577 break; 573 break;
578 default: 574 default: