diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-03-04 00:58:39 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-08 23:03:25 -0500 |
commit | 9874777016e06ad2df420237963e81389776cb6d (patch) | |
tree | abd509f5d37da4f8e2cdef8e3e41ec498c4a10ca /arch/powerpc/platforms/cell/iommu.c | |
parent | 618d3adc351a24c4c48437c767befb88ca2d199d (diff) |
[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>
Diffstat (limited to 'arch/powerpc/platforms/cell/iommu.c')
-rw-r--r-- | arch/powerpc/platforms/cell/iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c index 67d617b60a23..d0e02ea1d538 100644 --- a/arch/powerpc/platforms/cell/iommu.c +++ b/arch/powerpc/platforms/cell/iommu.c | |||
@@ -646,7 +646,7 @@ static int __init cell_iommu_init_disabled(void) | |||
646 | unsigned long base = 0, size; | 646 | unsigned long base = 0, size; |
647 | 647 | ||
648 | /* When no iommu is present, we use direct DMA ops */ | 648 | /* When no iommu is present, we use direct DMA ops */ |
649 | pci_dma_ops = &dma_direct_ops; | 649 | set_pci_dma_ops(&dma_direct_ops); |
650 | 650 | ||
651 | /* First make sure all IOC translation is turned off */ | 651 | /* First make sure all IOC translation is turned off */ |
652 | cell_disable_iommus(); | 652 | cell_disable_iommus(); |
@@ -734,7 +734,7 @@ static int __init cell_iommu_init(void) | |||
734 | } | 734 | } |
735 | 735 | ||
736 | /* Setup default PCI iommu ops */ | 736 | /* Setup default PCI iommu ops */ |
737 | pci_dma_ops = &dma_iommu_ops; | 737 | set_pci_dma_ops(&dma_iommu_ops); |
738 | 738 | ||
739 | bail: | 739 | bail: |
740 | /* Register callbacks on OF platform device addition/removal | 740 | /* Register callbacks on OF platform device addition/removal |