summaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-12-24 15:03:02 +0100
committerChristoph Hellwig <hch@lst.de>2018-01-10 16:41:16 +0100
commita5feb607a00815e5153437df0fadb813ab1cb4ad (patch)
treef1903dce300e038a7fceaac3bb05b0c3057523ce /arch/microblaze
parent7e05c19afbd3b2c1eaf8c58dbc70ff430668ab3c (diff)
downloadop-kernel-dev-a5feb607a00815e5153437df0fadb813ab1cb4ad.zip
op-kernel-dev-a5feb607a00815e5153437df0fadb813ab1cb4ad.tar.gz
microblaze: remove dma_nommu_dma_supported
Always returning 1 is the same behavior as not supplying a method at all. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/kernel/dma.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/microblaze/kernel/dma.c b/arch/microblaze/kernel/dma.c
index 450803e..b45d8f8 100644
--- a/arch/microblaze/kernel/dma.c
+++ b/arch/microblaze/kernel/dma.c
@@ -89,11 +89,6 @@ static int dma_nommu_map_sg(struct device *dev, struct scatterlist *sgl,
return nents;
}
-static int dma_nommu_dma_supported(struct device *dev, u64 mask)
-{
- return 1;
-}
-
static inline dma_addr_t dma_nommu_map_page(struct device *dev,
struct page *page,
unsigned long offset,
@@ -209,7 +204,6 @@ const struct dma_map_ops dma_nommu_ops = {
.free = dma_nommu_free_coherent,
.mmap = dma_nommu_mmap_coherent,
.map_sg = dma_nommu_map_sg,
- .dma_supported = dma_nommu_dma_supported,
.map_page = dma_nommu_map_page,
.unmap_page = dma_nommu_unmap_page,
.sync_single_for_cpu = dma_nommu_sync_single_for_cpu,
OpenPOWER on IntegriCloud