Skip to content

Commit bf15f90

Browse files
author
Christoph Hellwig
committed
hexagon: use the generic dma_capable helper
Signed-off-by: Christoph Hellwig <[email protected]> Acked-by: Richard Kuo <[email protected]>
1 parent b49efd7 commit bf15f90

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

arch/hexagon/include/asm/dma-mapping.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,4 @@ static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
3737
return dma_ops;
3838
}
3939

40-
static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
41-
{
42-
if (!dev->dma_mask)
43-
return 0;
44-
return addr + size - 1 <= *dev->dma_mask;
45-
}
46-
4740
#endif

arch/hexagon/kernel/dma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*/
2020

2121
#include <linux/dma-mapping.h>
22+
#include <linux/dma-direct.h>
2223
#include <linux/bootmem.h>
2324
#include <linux/genalloc.h>
2425
#include <asm/dma-mapping.h>

0 commit comments

Comments
 (0)