[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:
Stephen Rothwell
2007-03-04 16:58:39 +11:00
committed by Paul Mackerras
parent 618d3adc35
commit 9874777016
8 changed files with 20 additions and 11 deletions

View File

@@ -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);
}