diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2018-10-09 13:51:41 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-10-14 18:04:09 +1100 |
commit | aa91796ec46339f2ed53da311bd3ea77a3e4dfe1 (patch) | |
tree | 4a0fd86a6531a7cfb3db5c17a60b9826b1bbeafe /arch/powerpc/kernel/btext.c | |
parent | 402a5698b4462a3dcfcf9bdafabed7f63c9be7d8 (diff) | |
download | linux-aa91796ec46339f2ed53da311bd3ea77a3e4dfe1.tar.gz linux-aa91796ec46339f2ed53da311bd3ea77a3e4dfe1.tar.bz2 linux-aa91796ec46339f2ed53da311bd3ea77a3e4dfe1.zip |
powerpc: don't use ioremap_prot() nor __ioremap() unless really needed.
In many places, ioremap_prot() and __ioremap() can be replaced with
higher level functions like ioremap(), ioremap_coherent(),
ioremap_cache(), ioremap_wc() ...
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/btext.c')
-rw-r--r-- | arch/powerpc/kernel/btext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/btext.c b/arch/powerpc/kernel/btext.c index b2072d5bbf2b..b4241ed1456e 100644 --- a/arch/powerpc/kernel/btext.c +++ b/arch/powerpc/kernel/btext.c @@ -163,7 +163,7 @@ void btext_map(void) offset = ((unsigned long) dispDeviceBase) - base; size = dispDeviceRowBytes * dispDeviceRect[3] + offset + dispDeviceRect[0]; - vbase = __ioremap(base, size, pgprot_val(pgprot_noncached_wc(__pgprot(0)))); + vbase = ioremap_wc(base, size); if (!vbase) return; logicalDisplayBase = vbase + offset; |