Merge tag 'ftracetest-3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[sfrench/cifs-2.6.git] / arch / arm64 / include / asm / dma-mapping.h
index dc82e52acdb35f406fd6ecbcaaeb405841400979..adeae3f6f0fc28402f36f1b4d58b98b16c69acf5 100644 (file)
@@ -52,6 +52,13 @@ static inline void set_dma_ops(struct device *dev, struct dma_map_ops *ops)
        dev->archdata.dma_ops = ops;
 }
 
+static inline int set_arch_dma_coherent_ops(struct device *dev)
+{
+       set_dma_ops(dev, &coherent_swiotlb_dma_ops);
+       return 0;
+}
+#define set_arch_dma_coherent_ops      set_arch_dma_coherent_ops
+
 #include <asm-generic/dma-mapping-common.h>
 
 static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)