aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/mm/dma-default.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c
index 810535dd091b..ae39dd88b9aa 100644
--- a/arch/mips/mm/dma-default.c
+++ b/arch/mips/mm/dma-default.c
@@ -383,7 +383,7 @@ void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
383 BUG_ON(direction == DMA_NONE); 383 BUG_ON(direction == DMA_NONE);
384 384
385 if (!plat_device_is_coherent(dev)) 385 if (!plat_device_is_coherent(dev))
386 dma_cache_wback_inv((unsigned long)vaddr, size); 386 __dma_sync((unsigned long)vaddr, size, direction);
387} 387}
388 388
389EXPORT_SYMBOL(dma_cache_sync); 389EXPORT_SYMBOL(dma_cache_sync);