Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf15f90b authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

hexagon: use the generic dma_capable helper

parent b49efd76
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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>