[MIPS] dma_sync_sg_for_cpu is a no-op except for non-coherent R10000s.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+1 -1
+1 -1
arch/mips/mm/dma-default.c
··· 295 296 /* Make sure that gcc doesn't leave the empty loop body. */ 297 for (i = 0; i < nelems; i++, sg++) { 298 - if (!plat_device_is_coherent(dev)) 299 __dma_sync((unsigned long)page_address(sg->page), 300 sg->length, direction); 301 plat_unmap_dma_mem(sg->dma_address);
··· 295 296 /* Make sure that gcc doesn't leave the empty loop body. */ 297 for (i = 0; i < nelems; i++, sg++) { 298 + if (cpu_is_noncoherent_r10000(dev)) 299 __dma_sync((unsigned long)page_address(sg->page), 300 sg->length, direction); 301 plat_unmap_dma_mem(sg->dma_address);