aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-10-26 21:41:58 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-10-26 21:41:58 -0400
commit478fb158005b55c8484f23a6beb1b69f5a612162 (patch)
treeca9ca7630ebecc13f435288b7076728e2de008f6
parent7693465d81827107caf9c447b9ad91098a1c4941 (diff)
sh: Fix up dma_is_consistent().
This fixes up the dma_is_consistent() definition for the various coherence options. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/sh/include/asm/dma-mapping.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/include/asm/dma-mapping.h b/arch/sh/include/asm/dma-mapping.h
index 653076018df0..87ced133a363 100644
--- a/arch/sh/include/asm/dma-mapping.h
+++ b/arch/sh/include/asm/dma-mapping.h
@@ -41,7 +41,12 @@ void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
41 41
42#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) 42#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
43#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) 43#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
44
45#ifdef CONFIG_DMA_COHERENT
44#define dma_is_consistent(d, h) (1) 46#define dma_is_consistent(d, h) (1)
47#else
48#define dma_is_consistent(d, h) (0)
49#endif
45 50
46static inline int dma_get_cache_alignment(void) 51static inline int dma_get_cache_alignment(void)
47{ 52{