Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7901b943 authored by Rohit Vaswani's avatar Rohit Vaswani Committed by Patrick Daly
Browse files

arm64: dma: Bring back set_dma_ops



Add the set_dma_ops function for arm64. It will be used by dma-removed.c.

Change-Id: I315547fcaed80d0424ab8fc920b95d79cfcebdc5
Signed-off-by: default avatarRohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 56a826c1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -47,6 +47,12 @@ static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
		return __generic_dma_ops(dev);
}

static inline void set_dma_ops(struct device *dev,
				const 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,
			const struct iommu_ops *iommu, bool coherent);
#define arch_setup_dma_ops	arch_setup_dma_ops