diff options
Diffstat (limited to 'arch/arm64/include/asm/dma-mapping.h')
| -rw-r--r-- | arch/arm64/include/asm/dma-mapping.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/dma-mapping.h b/arch/arm64/include/asm/dma-mapping.h index dc82e52acdb3..adeae3f6f0fc 100644 --- a/arch/arm64/include/asm/dma-mapping.h +++ b/arch/arm64/include/asm/dma-mapping.h | |||
| @@ -52,6 +52,13 @@ static inline void set_dma_ops(struct device *dev, struct dma_map_ops *ops) | |||
| 52 | dev->archdata.dma_ops = ops; | 52 | dev->archdata.dma_ops = ops; |
| 53 | } | 53 | } |
| 54 | 54 | ||
| 55 | static inline int set_arch_dma_coherent_ops(struct device *dev) | ||
| 56 | { | ||
| 57 | set_dma_ops(dev, &coherent_swiotlb_dma_ops); | ||
| 58 | return 0; | ||
| 59 | } | ||
| 60 | #define set_arch_dma_coherent_ops set_arch_dma_coherent_ops | ||
| 61 | |||
| 55 | #include <asm-generic/dma-mapping-common.h> | 62 | #include <asm-generic/dma-mapping-common.h> |
| 56 | 63 | ||
| 57 | static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) | 64 | static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) |
