]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/arm/include/asm/dma-mapping.h
arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops
[mirror_ubuntu-artful-kernel.git] / arch / arm / include / asm / dma-mapping.h
index f3c0d953f6a210c6612b03aad7ff6d33b1fc74ef..9410b7e548fc7129857c1fa03596a5b86261e1ee 100644 (file)
@@ -121,14 +121,12 @@ static inline unsigned long dma_max_pfn(struct device *dev)
 }
 #define dma_max_pfn(dev) dma_max_pfn(dev)
 
-static inline void arch_setup_dma_ops(struct device *dev, u64 dma_base,
-                                     u64 size, struct iommu_ops *iommu,
-                                     bool coherent)
-{
-       if (coherent)
-               set_dma_ops(dev, &arm_coherent_dma_ops);
-}
 #define arch_setup_dma_ops arch_setup_dma_ops
+extern void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
+                              struct iommu_ops *iommu, bool coherent);
+
+#define arch_teardown_dma_ops arch_teardown_dma_ops
+extern void arch_teardown_dma_ops(struct device *dev);
 
 static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)
 {