Skip to content

Commit

Permalink
sh: Fix up dma_is_consistent().
Browse files Browse the repository at this point in the history
This fixes up the dma_is_consistent() definition for the various
coherence options.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Oct 27, 2009
1 parent 7693465 commit 478fb15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/sh/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 478fb15

Please sign in to comment.