[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
@@ -333,7 +333,7 @@ void iommu_init_early_dart(void)
|
||||
ppc_md.pci_dma_bus_setup = pci_dma_bus_setup_dart;
|
||||
|
||||
/* Setup pci_dma ops */
|
||||
pci_dma_ops = &dma_iommu_ops;
|
||||
set_pci_dma_ops(&dma_iommu_ops);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -343,7 +343,7 @@ void iommu_init_early_dart(void)
|
||||
ppc_md.pci_dma_bus_setup = NULL;
|
||||
|
||||
/* Setup pci_dma ops */
|
||||
pci_dma_ops = &dma_direct_ops;
|
||||
set_pci_dma_ops(&dma_direct_ops);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user