diff options
Diffstat (limited to 'arch/powerpc/kernel/pci_direct_iommu.c')
-rw-r--r-- | arch/powerpc/kernel/pci_direct_iommu.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/pci_direct_iommu.c b/arch/powerpc/kernel/pci_direct_iommu.c index e1a32f802c0b..72ce082ce738 100644 --- a/arch/powerpc/kernel/pci_direct_iommu.c +++ b/arch/powerpc/kernel/pci_direct_iommu.c | |||
@@ -82,13 +82,17 @@ static int pci_direct_dma_supported(struct device *dev, u64 mask) | |||
82 | return mask < 0x100000000ull; | 82 | return mask < 0x100000000ull; |
83 | } | 83 | } |
84 | 84 | ||
85 | static struct dma_mapping_ops pci_direct_ops = { | ||
86 | .alloc_coherent = pci_direct_alloc_coherent, | ||
87 | .free_coherent = pci_direct_free_coherent, | ||
88 | .map_single = pci_direct_map_single, | ||
89 | .unmap_single = pci_direct_unmap_single, | ||
90 | .map_sg = pci_direct_map_sg, | ||
91 | .unmap_sg = pci_direct_unmap_sg, | ||
92 | .dma_supported = pci_direct_dma_supported, | ||
93 | }; | ||
94 | |||
85 | void __init pci_direct_iommu_init(void) | 95 | void __init pci_direct_iommu_init(void) |
86 | { | 96 | { |
87 | pci_dma_ops.alloc_coherent = pci_direct_alloc_coherent; | 97 | pci_dma_ops = pci_direct_ops; |
88 | pci_dma_ops.free_coherent = pci_direct_free_coherent; | ||
89 | pci_dma_ops.map_single = pci_direct_map_single; | ||
90 | pci_dma_ops.unmap_single = pci_direct_unmap_single; | ||
91 | pci_dma_ops.map_sg = pci_direct_map_sg; | ||
92 | pci_dma_ops.unmap_sg = pci_direct_unmap_sg; | ||
93 | pci_dma_ops.dma_supported = pci_direct_dma_supported; | ||
94 | } | 98 | } |