ARM: Make consolidated PM sleep code depend on PM_SLEEP
commit29ea23ff905d07d8559bac69cca46f4bbf20038c
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 2 Apr 2011 09:08:55 +0000 (2 10:08 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 2 Apr 2011 09:08:55 +0000 (2 10:08 +0100)
tree969bde025e5b36051b707662e61f49ff1e6f1777
parent78fca1b95837a44983608302e89c7258981be9b3
ARM: Make consolidated PM sleep code depend on PM_SLEEP

CONFIG_PM is now set whenever we support either runtime PM in addition
to suspend and hibernate.  This causes build errors when runtime PM is
enabled on a platform, but the CPU does not have the appropriate support
for suspend.

So, switch this code to use CONFIG_PM_SLEEP rather than CONFIG_PM to
allow runtime PM to be enabled without causing build errors.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/Makefile
arch/arm/mm/proc-arm920.S
arch/arm/mm/proc-arm926.S
arch/arm/mm/proc-sa1100.S
arch/arm/mm/proc-v6.S
arch/arm/mm/proc-v7.S
arch/arm/mm/proc-xsc3.S
arch/arm/mm/proc-xscale.S