Skip to content

Commit a5feb60

Browse files
author
Christoph Hellwig
committed
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 <[email protected]>
1 parent 7e05c19 commit a5feb60

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

arch/microblaze/kernel/dma.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,6 @@ static int dma_nommu_map_sg(struct device *dev, struct scatterlist *sgl,
8989
return nents;
9090
}
9191

92-
static int dma_nommu_dma_supported(struct device *dev, u64 mask)
93-
{
94-
return 1;
95-
}
96-
9792
static inline dma_addr_t dma_nommu_map_page(struct device *dev,
9893
struct page *page,
9994
unsigned long offset,
@@ -209,7 +204,6 @@ const struct dma_map_ops dma_nommu_ops = {
209204
.free = dma_nommu_free_coherent,
210205
.mmap = dma_nommu_mmap_coherent,
211206
.map_sg = dma_nommu_map_sg,
212-
.dma_supported = dma_nommu_dma_supported,
213207
.map_page = dma_nommu_map_page,
214208
.unmap_page = dma_nommu_unmap_page,
215209
.sync_single_for_cpu = dma_nommu_sync_single_for_cpu,

arch/parisc/kernel/pci-dma.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ void dump_resmap(void)
7575
static inline void dump_resmap(void) {;}
7676
#endif
7777

78-
static int pa11_dma_supported( struct device *dev, u64 mask)
79-
{
80-
return 1;
81-
}
82-
8378
static inline int map_pte_uncached(pte_t * pte,
8479
unsigned long vaddr,
8580
unsigned long size, unsigned long *paddr_ptr)
@@ -579,7 +574,6 @@ static void pa11_dma_cache_sync(struct device *dev, void *vaddr, size_t size,
579574
}
580575

581576
const struct dma_map_ops pcxl_dma_ops = {
582-
.dma_supported = pa11_dma_supported,
583577
.alloc = pa11_dma_alloc,
584578
.free = pa11_dma_free,
585579
.map_page = pa11_dma_map_page,
@@ -616,7 +610,6 @@ static void pcx_dma_free(struct device *dev, size_t size, void *vaddr,
616610
}
617611

618612
const struct dma_map_ops pcx_dma_ops = {
619-
.dma_supported = pa11_dma_supported,
620613
.alloc = pcx_dma_alloc,
621614
.free = pcx_dma_free,
622615
.map_page = pa11_dma_map_page,

0 commit comments

Comments
 (0)