diff options
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/dma-mapping.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 0e28cf33f7dd..67960017dc8f 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c | |||
@@ -585,12 +585,8 @@ void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, | |||
585 | int i; | 585 | int i; |
586 | 586 | ||
587 | for_each_sg(sg, s, nents, i) { | 587 | for_each_sg(sg, s, nents, i) { |
588 | if (!dmabounce_sync_for_cpu(dev, sg_dma_address(s), 0, | 588 | dmabounce_sync_for_cpu(dev, sg_dma_address(s), 0, |
589 | sg_dma_len(s), dir)) | 589 | sg_dma_len(s), dir); |
590 | continue; | ||
591 | |||
592 | if (!arch_is_coherent()) | ||
593 | dma_cache_maint(sg_virt(s), s->length, dir); | ||
594 | } | 590 | } |
595 | } | 591 | } |
596 | EXPORT_SYMBOL(dma_sync_sg_for_cpu); | 592 | EXPORT_SYMBOL(dma_sync_sg_for_cpu); |