drivers/block/z2ram: use ioremap_wt() instead of __ioremap(_PAGE_WRITETHRU)
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 9 Oct 2018 13:51:37 +0000 (13:51 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 13 Oct 2018 12:52:45 +0000 (23:52 +1100)
_PAGE_WRITETHRU is a target specific flag. Prefer generic functions.

Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/block/z2ram.c

index d0c5bc4e07039bcaf1625e614b56093f7a0c4c46..cfbd70520eeb39218944431273e00892c64b9958 100644 (file)
@@ -190,8 +190,7 @@ static int z2_open(struct block_device *bdev, fmode_t mode)
                        vfree(vmalloc (size));
                }
 
-               vaddr = (unsigned long) __ioremap (paddr, size, 
-                                                  _PAGE_WRITETHRU);
+               vaddr = (unsigned long)ioremap_wt(paddr, size);
 
 #else
                vaddr = (unsigned long)z_remap_nocache_nonser(paddr, size);