projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e04e395
)
drivers/block/z2ram: use ioremap_wt() instead of __ioremap(_PAGE_WRITETHRU)
author
Christophe Leroy
<christophe.leroy@c-s.fr>
Tue, 9 Oct 2018 13:51:37 +0000
(13:51 +0000)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/drivers/block/z2ram.c
b/drivers/block/z2ram.c
index d0c5bc4e07039bcaf1625e614b56093f7a0c4c46..cfbd70520eeb39218944431273e00892c64b9958 100644
(file)
--- 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);