提交 771e569e 编写于 作者: D Daniel Axtens 提交者: Michael Ellerman

powerpc: dart_iommu: Remove check for controller_ops == NULL case

Now that we have ported the calls to iommu_init_early_dart to always
supply a pci_controller_ops struct, we can safely drop the check.
Signed-off-by: NDaniel Axtens <dja@axtens.net>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 467efc2e
...@@ -395,20 +395,17 @@ void __init iommu_init_early_dart(struct pci_controller_ops *controller_ops) ...@@ -395,20 +395,17 @@ void __init iommu_init_early_dart(struct pci_controller_ops *controller_ops)
if (dart_is_u4) if (dart_is_u4)
ppc_md.dma_set_mask = dart_dma_set_mask; ppc_md.dma_set_mask = dart_dma_set_mask;
if (controller_ops) { controller_ops->dma_dev_setup = pci_dma_dev_setup_dart;
controller_ops->dma_dev_setup = pci_dma_dev_setup_dart; controller_ops->dma_bus_setup = pci_dma_bus_setup_dart;
controller_ops->dma_bus_setup = pci_dma_bus_setup_dart;
}
/* Setup pci_dma ops */ /* Setup pci_dma ops */
set_pci_dma_ops(&dma_iommu_ops); set_pci_dma_ops(&dma_iommu_ops);
return; return;
bail: bail:
/* If init failed, use direct iommu and null setup functions */ /* If init failed, use direct iommu and null setup functions */
if (controller_ops) { controller_ops->dma_dev_setup = NULL;
controller_ops->dma_dev_setup = NULL; controller_ops->dma_bus_setup = NULL;
controller_ops->dma_bus_setup = NULL;
}
/* Setup pci_dma ops */ /* Setup pci_dma ops */
set_pci_dma_ops(&dma_direct_ops); set_pci_dma_ops(&dma_direct_ops);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册