Skip to content

Commit

Permalink
ARM: at91: Replace uses of virt_to_phys with __pa_symbol
Browse files Browse the repository at this point in the history
The PM code wrongly uses virt_to_phys() instead of __pa_symbol() and was
not updated by commit 64fc2a9 ("ARM: 8641/1: treewide: Replace uses of
virt_to_phys with __pa_symbol") because it was not yet in tree.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
  • Loading branch information
Alexandre Belloni authored and Nicolas Ferre committed Sep 18, 2017
1 parent e025a3a commit 093d79f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-at91/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ static void __init at91_pm_backup_init(void)
}

pm_bu->suspended = 0;
pm_bu->canary = virt_to_phys(&canary);
pm_bu->resume = virt_to_phys(cpu_resume);
pm_bu->canary = __pa_symbol(&canary);
pm_bu->resume = __pa_symbol(cpu_resume);

return;

Expand Down

0 comments on commit 093d79f

Please sign in to comment.