[POWERPC] Create and use set_pci_dma_ops
This will allow us to build without PCI easier. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:

committed by
Paul Mackerras

parent
618d3adc35
commit
9874777016
@@ -562,7 +562,7 @@ void iommu_init_early_pSeries(void)
|
||||
/* Direct I/O, IOMMU off */
|
||||
ppc_md.pci_dma_dev_setup = NULL;
|
||||
ppc_md.pci_dma_bus_setup = NULL;
|
||||
pci_dma_ops = &dma_direct_ops;
|
||||
set_pci_dma_ops(&dma_direct_ops);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -588,6 +588,6 @@ void iommu_init_early_pSeries(void)
|
||||
|
||||
pSeries_reconfig_notifier_register(&iommu_reconfig_nb);
|
||||
|
||||
pci_dma_ops = &dma_iommu_ops;
|
||||
set_pci_dma_ops(&dma_iommu_ops);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user