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:
parent
c2564a7fb8
commit
53b034fa49
1 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,12 @@ static inline struct dma_map_ops *get_dma_ops(struct device *dev)
|
||||||
return __generic_dma_ops(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,
|
void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
|
||||||
struct iommu_ops *iommu, bool coherent);
|
struct iommu_ops *iommu, bool coherent);
|
||||||
#define arch_setup_dma_ops arch_setup_dma_ops
|
#define arch_setup_dma_ops arch_setup_dma_ops
|
||||||
|
|
Loading…
Add table
Reference in a new issue