summaryrefslogtreecommitdiffstats
path: root/arch/arm/common
diff options
context:
space:
mode:
authorChristoph Hellwig2017-05-22 11:20:18 +0200
committerChristoph Hellwig2017-06-28 15:54:45 +0200
commit418a7a7e4f05f36d6e4ab5b8548ea71f0b602140 (patch)
tree5f09b1c6475386d085bd210f11440aab57d8b70e /arch/arm/common
parentopenrisc: remove arch-specific dma_supported implementation (diff)
downloadkernel-qcow2-linux-418a7a7e4f05f36d6e4ab5b8548ea71f0b602140.tar.gz
kernel-qcow2-linux-418a7a7e4f05f36d6e4ab5b8548ea71f0b602140.tar.xz
kernel-qcow2-linux-418a7a7e4f05f36d6e4ab5b8548ea71f0b602140.zip
arm: remove arch specific dma_supported implementation
And instead wire it up as method for all the dma_map_ops instances. Note that the code seems a little fishy for dmabounce and iommu, but for now I'd like to preserve the existing behavior 1:1. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/arm/common')
-rw-r--r--arch/arm/common/dmabounce.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c
index 4060378e0f14..6ecd5be5d37e 100644
--- a/arch/arm/common/dmabounce.c
+++ b/arch/arm/common/dmabounce.c
@@ -473,6 +473,7 @@ static const struct dma_map_ops dmabounce_ops = {
.sync_sg_for_device = arm_dma_sync_sg_for_device,
.set_dma_mask = dmabounce_set_mask,
.mapping_error = dmabounce_mapping_error,
+ .dma_supported = arm_dma_supported,
};
static int dmabounce_init_pool(struct dmabounce_pool *pool, struct device *dev,