summary refs log tree commit diff
path: root/arch/arm64
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-07-24 14:09:39 +0200
committerChristoph Hellwig <hch@lst.de>2019-09-11 12:43:26 +0200
commit0e0d26e779d30086a7e86fcfae2d897bbc5579da (patch)
treee9d46ad62e08671957d024627cd24f36167ae6eb /arch/arm64
parentefcd5729d97cd19d32911ffdf478bb86ae8e818f (diff)
downloadlinux-0e0d26e779d30086a7e86fcfae2d897bbc5579da.tar.gz
xen/arm: remove xen_dma_ops
arm and arm64 can just use xen_swiotlb_dma_ops directly like x86, no
need for a pointer indirection.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/mm/dma-mapping.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c
index a1d05f669f67..c44eb72d500f 100644
--- a/arch/arm64/mm/dma-mapping.c
+++ b/arch/arm64/mm/dma-mapping.c
@@ -8,6 +8,7 @@
 #include <linux/cache.h>
 #include <linux/dma-noncoherent.h>
 #include <linux/dma-iommu.h>
+#include <xen/swiotlb-xen.h>
 
 #include <asm/cacheflush.h>
 
@@ -52,6 +53,6 @@ void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
 
 #ifdef CONFIG_XEN
 	if (xen_initial_domain())
-		dev->dma_ops = xen_dma_ops;
+		dev->dma_ops = &xen_swiotlb_dma_ops;
 #endif
 }