[U-Boot] [PATCH 09/10] nios2: dma-mapping.h: change ioremap to map_physmem

Thomas Chou thomas at wytron.com.tw
Sat Nov 14 06:59:30 CET 2015


Change ioremap() to map_physmem(), as it is more used in u-boot.

Signed-off-by: Thomas Chou <thomas at wytron.com.tw>
---
 arch/nios2/include/asm/dma-mapping.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/nios2/include/asm/dma-mapping.h b/arch/nios2/include/asm/dma-mapping.h
index 1562d35..65f67bc 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 */
-- 
2.5.0



More information about the U-Boot mailing list