diff options
author | 2017-12-24 15:03:02 +0100 | |
---|---|---|
committer | 2018-01-10 16:41:16 +0100 | |
commit | a5feb607a00815e5153437df0fadb813ab1cb4ad (patch) | |
tree | f1903dce300e038a7fceaac3bb05b0c3057523ce /arch/microblaze/kernel/dma.c | |
parent | microblaze: rename dma_direct to dma_nommu (diff) | |
download | linux-a5feb607a00815e5153437df0fadb813ab1cb4ad.tar.gz linux-a5feb607a00815e5153437df0fadb813ab1cb4ad.tar.bz2 linux-a5feb607a00815e5153437df0fadb813ab1cb4ad.zip |
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/kernel/dma.c')
-rw-r--r-- | arch/microblaze/kernel/dma.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/microblaze/kernel/dma.c b/arch/microblaze/kernel/dma.c index 450803e5731a..b45d8f8967af 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, |