提交 478fb158 编写于 作者: P Paul Mundt

sh: Fix up dma_is_consistent().

This fixes up the dma_is_consistent() definition for the various
coherence options.
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 7693465d
......@@ -41,7 +41,12 @@ void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
#ifdef CONFIG_DMA_COHERENT
#define dma_is_consistent(d, h) (1)
#else
#define dma_is_consistent(d, h) (0)
#endif
static inline int dma_get_cache_alignment(void)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册