From: Thomas Chou Date: Sat, 14 Nov 2015 03:34:09 +0000 (+0800) Subject: nios2: dma-mapping.h: change ioremap to map_physmem X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7be35ddd2011b9c73e8940a368f801b1b900b610;p=project%2Fbcm63xx%2Fu-boot.git nios2: dma-mapping.h: change ioremap to map_physmem Change ioremap() to map_physmem(), as it is more used in u-boot. Signed-off-by: Thomas Chou Reviewed-by: Marek Vasut --- diff --git a/arch/nios2/include/asm/dma-mapping.h b/arch/nios2/include/asm/dma-mapping.h index 1562d35f0d..65f67bc1f4 100644 --- a/arch/nios2/include/asm/dma-mapping.h +++ b/arch/nios2/include/asm/dma-mapping.h @@ -19,6 +19,6 @@ static inline void *dma_alloc_coherent(size_t len, unsigned long *handle) if (handle) *handle = addr; - return ioremap(addr, len); + return map_physmem(addr, len, MAP_NOCACHE); } #endif /* __ASM_NIOS2_DMA_MAPPING_H */