Skip to content

Commit

Permalink
ARM: owl: smp: Use __pa_symbol()
Browse files Browse the repository at this point in the history
Replace an occurrence of virt_to_phys() with __pa_symbol() macro.

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

Fixes: 172067e ("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>
  • Loading branch information
Andreas Färber committed Sep 20, 2017
1 parent 2bd6bf0 commit bad2993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-actions/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bad2993

Please sign in to comment.