summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/85xx/smp.c
diff options
context:
space:
mode:
authorChristophe Leroy2018-10-09 15:51:41 +0200
committerMichael Ellerman2018-10-14 09:04:09 +0200
commitaa91796ec46339f2ed53da311bd3ea77a3e4dfe1 (patch)
tree4a0fd86a6531a7cfb3db5c17a60b9826b1bbeafe /arch/powerpc/platforms/85xx/smp.c
parentsoc/fsl/qbman: use ioremap_cache() instead of ioremap_prot(0) (diff)
downloadkernel-qcow2-linux-aa91796ec46339f2ed53da311bd3ea77a3e4dfe1.tar.gz
kernel-qcow2-linux-aa91796ec46339f2ed53da311bd3ea77a3e4dfe1.tar.xz
kernel-qcow2-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/platforms/85xx/smp.c')
-rw-r--r--arch/powerpc/platforms/85xx/smp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/85xx/smp.c b/arch/powerpc/platforms/85xx/smp.c
index 7e966f4cf19a..fff72425727a 100644
--- a/arch/powerpc/platforms/85xx/smp.c
+++ b/arch/powerpc/platforms/85xx/smp.c
@@ -216,8 +216,8 @@ static int smp_85xx_start_cpu(int cpu)
/* Map the spin table */
if (ioremappable)
- spin_table = ioremap_prot(*cpu_rel_addr,
- sizeof(struct epapr_spin_table), _PAGE_COHERENT);
+ spin_table = ioremap_coherent(*cpu_rel_addr,
+ sizeof(struct epapr_spin_table));
else
spin_table = phys_to_virt(*cpu_rel_addr);