Browse Source

hexagon: use the generic dma_capable helper

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Richard Kuo <rkuo@codeaurora.org>
Christoph Hellwig 7 năm trước cách đây
mục cha
commit
bf15f90b07
2 tập tin đã thay đổi với 1 bổ sung7 xóa
  1. 0 7
      arch/hexagon/include/asm/dma-mapping.h
  2. 1 0
      arch/hexagon/kernel/dma.c

+ 0 - 7
arch/hexagon/include/asm/dma-mapping.h

@@ -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 - 0
arch/hexagon/kernel/dma.c

@@ -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>