arm64: dma: Bring back set_dma_ops for other internal uses like dma-removed.c

Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
This commit is contained in:
Rohit Vaswani 2016-02-01 12:18:57 -08:00 committed by David Keitel
parent c2564a7fb8
commit 53b034fa49

View file

@ -47,6 +47,12 @@ static inline struct dma_map_ops *get_dma_ops(struct device *dev)
return __generic_dma_ops(dev);
}
static inline void set_dma_ops(struct device *dev,
struct dma_map_ops *dma_ops)
{
dev->archdata.dma_ops = dma_ops;
}
void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
struct iommu_ops *iommu, bool coherent);
#define arch_setup_dma_ops arch_setup_dma_ops