summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2018-10-09 15:51:37 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2018-10-13 14:52:45 +0200
commited18e423a3d9b2dc9db801358b754e722fcabaff (patch)
treed85842135fe52bde38953886263a6afd305c3080 /drivers/block
parentdrivers/video/fbdev: use ioremap_wc/wt() instead of __ioremap() (diff)
downloadlinux-ed18e423a3d9b2dc9db801358b754e722fcabaff.tar.xz
linux-ed18e423a3d9b2dc9db801358b754e722fcabaff.zip
drivers/block/z2ram: use ioremap_wt() instead of __ioremap(_PAGE_WRITETHRU)
_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>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/z2ram.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/z2ram.c b/drivers/block/z2ram.c
index d0c5bc4e0703..cfbd70520eeb 100644
--- a/drivers/block/z2ram.c
+++ b/drivers/block/z2ram.c
@@ -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);