]> git.sur5r.net Git - u-boot/commitdiff
nios2: dma-mapping.h: change ioremap to map_physmem
authorThomas Chou <thomas@wytron.com.tw>
Sat, 14 Nov 2015 03:34:09 +0000 (11:34 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Wed, 18 Nov 2015 13:18:30 +0000 (21:18 +0800)
Change ioremap() to map_physmem(), as it is more used in u-boot.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Reviewed-by: Marek Vasut <marex@denx.de>
arch/nios2/include/asm/dma-mapping.h

index 1562d35f0dc424376f025ee78e9344248a8407df..65f67bc1f442041dba9d747600b7857ab06a59dc 100644 (file)
@@ -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 */