Skip to content

Commit

Permalink
hexagon: use the generic dma_capable helper
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hellwig <[email protected]>
Acked-by: Richard Kuo <[email protected]>
  • Loading branch information
Christoph Hellwig committed Jan 10, 2018
1 parent b49efd7 commit bf15f90
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions arch/hexagon/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,4 @@ static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
return dma_ops;
}

static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
{
if (!dev->dma_mask)
return 0;
return addr + size - 1 <= *dev->dma_mask;
}

#endif
1 change: 1 addition & 0 deletions arch/hexagon/kernel/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

#include <linux/dma-mapping.h>
#include <linux/dma-direct.h>
#include <linux/bootmem.h>
#include <linux/genalloc.h>
#include <asm/dma-mapping.h>
Expand Down

0 comments on commit bf15f90

Please sign in to comment.