mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
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>
This commit is contained in:
committed by
Michael Ellerman
parent
402a5698b4
commit
aa91796ec4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user