]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/mm/dma-default.c
[MIPS] Allow setting of the cache attribute at run time.
[linux-2.6-omap-h63xx.git] / arch / mips / mm / dma-default.c
index 810535dd091be1f1aaff24c6403f0686b8b01d63..ae39dd88b9aa0eb97cb63b4c56bbe41c1811ad94 100644 (file)
@@ -383,7 +383,7 @@ void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
        BUG_ON(direction == DMA_NONE);
 
        if (!plat_device_is_coherent(dev))
-               dma_cache_wback_inv((unsigned long)vaddr, size);
+               __dma_sync((unsigned long)vaddr, size, direction);
 }
 
 EXPORT_SYMBOL(dma_cache_sync);