Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed18e423 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman
Browse files

drivers/block/z2ram: use ioremap_wt() instead of __ioremap(_PAGE_WRITETHRU)



_PAGE_WRITETHRU is a target specific flag. Prefer generic functions.

Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent e04e3950
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);