ARM: shmobile: Rework sh7372 sleep code to use virt_to_phys()
authorMagnus Damm <damm@opensource.se>
Wed, 5 Jun 2013 07:45:53 +0000 (16:45 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 17 Jun 2013 07:06:47 +0000 (16:06 +0900)
commite26f4067405872b5d8b9efea9fc48cda97e39fc2
tree3220ae2befbf96b5d73df781c2b146cff7ef5a78
parent4f309d272f7139278f52cf1e2dcf5b2bc8c029d9
ARM: shmobile: Rework sh7372 sleep code to use virt_to_phys()

Instead of having a hard coded virt-to-phys address
conversion code in sleep-sh7372.S, rework the code
to do the conversion in C using virt_to_phys().

This removes the need for PLAT_PHYS_OFFSET which
in turn is needed for ARCH_MULTIPLATFORM.

Signed-off-by: Magnus Damm <damm@opensource.se>
[horms+renesas@verge.net.au: squashed in build fix posted as
 "ARM: shmobile: sh7372 build fix for SUSPEND=n && CPU_IDLE=n"]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/include/mach/sh7372.h
arch/arm/mach-shmobile/pm-sh7372.c
arch/arm/mach-shmobile/sleep-sh7372.S