hexagon: use the generic dma_capable helper
Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Richard Kuo <rkuo@codeaurora.org>
This commit is contained in:
		
							parent
							
								
									b49efd7624
								
							
						
					
					
						commit
						bf15f90b07
					
				| @ -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 | ||||
|  | ||||
| @ -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> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user