From f6cfdf9288238ce61b9103cbeb9c63275b39b69f Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Thu, 17 Jan 2019 16:38:24 -0800 Subject: ARM: mmu: Share code for dma_sync_single_for_cpu() Both ARM and ARM64 have identical code for dma_sync_single_for_cpu(). Move it to mmu-common.c so it can be shared. Reviewed-by: Sam Ravnborg Signed-off-by: Andrey Smirnov Signed-off-by: Sascha Hauer --- arch/arm/cpu/mmu.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'arch/arm/cpu/mmu.c') diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c index 35ac00a8ff..97c459ff0c 100644 --- a/arch/arm/cpu/mmu.c +++ b/arch/arm/cpu/mmu.c @@ -506,13 +506,6 @@ void *dma_alloc_writecombine(size_t size, dma_addr_t *dma_handle) return dma_alloc_map(size, dma_handle, ARCH_MAP_WRITECOMBINE); } -void dma_sync_single_for_cpu(dma_addr_t address, size_t size, - enum dma_data_direction dir) -{ - if (dir != DMA_TO_DEVICE) - dma_inv_range((void *)address, size); -} - void dma_sync_single_for_device(dma_addr_t address, size_t size, enum dma_data_direction dir) { -- cgit v1.2.3