[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

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