]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: owl: smp: Use __pa_symbol()
authorAndreas Färber <afaerber@suse.de>
Sun, 9 Jul 2017 02:17:46 +0000 (04:17 +0200)
committerAndreas Färber <afaerber@suse.de>
Wed, 20 Sep 2017 14:48:14 +0000 (16:48 +0200)
Replace an occurrence of virt_to_phys() with __pa_symbol() macro.

See 64fc2a947a9873700929ec0ef02b4654a04e0476 ("ARM: 8641/1: treewide:
Replace uses of virt_to_phys with __pa_symbol").

Fixes: 172067e0bc87 ("ARM: owl: Implement CPU enable-method for S500")
Reported-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
arch/arm/mach-actions/platsmp.c

index 12a9e331b432cc3bd9b8b43ae20a9c531a838c7b..7238926ab015011cceb46b34df8ee82250e98619 100644 (file)
@@ -71,7 +71,7 @@ static int s500_wakeup_secondary(unsigned int cpu)
        /* wait for CPUx to run to WFE instruction */
        udelay(200);
 
-       writel(virt_to_phys(owl_secondary_startup),
+       writel(__pa_symbol(owl_secondary_startup),
               timer_base_addr + OWL_CPU1_ADDR + (cpu - 1) * 4);
        writel(OWL_CPUx_FLAG_BOOT,
               timer_base_addr + OWL_CPU1_FLAG + (cpu - 1) * 4);