From: Eric Miao Date: Sun, 11 Sep 2011 09:19:11 +0000 (+0800) Subject: ARM: pxa/z2: fix building error of pxa27x_cpu_suspend() no longer available X-Git-Tag: next-20111101~87^2~12^2~2^2~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ba4a90a6d86a428c295775b46e653ab8f8e459b8;p=karo-tx-linux.git ARM: pxa/z2: fix building error of pxa27x_cpu_suspend() no longer available Cc: Vasily Khoruzhick Acked-by: Arnd Bergmann Signed-off-by: Eric Miao --- diff --git a/arch/arm/mach-pxa/include/mach/pxa27x.h b/arch/arm/mach-pxa/include/mach/pxa27x.h index b9b1bdc4bacc..7cff640582b8 100644 --- a/arch/arm/mach-pxa/include/mach/pxa27x.h +++ b/arch/arm/mach-pxa/include/mach/pxa27x.h @@ -1,6 +1,7 @@ #ifndef __MACH_PXA27x_H #define __MACH_PXA27x_H +#include #include #include #include @@ -21,6 +22,7 @@ extern void __init pxa27x_map_io(void); extern void __init pxa27x_init_irq(void); extern int __init pxa27x_set_pwrmode(unsigned int mode); +extern void pxa27x_cpu_pm_enter(suspend_state_t state); #define pxa27x_handle_irq ichp_handle_irq diff --git a/arch/arm/mach-pxa/z2.c b/arch/arm/mach-pxa/z2.c index 6c9275a20c91..a82d4207f235 100644 --- a/arch/arm/mach-pxa/z2.c +++ b/arch/arm/mach-pxa/z2.c @@ -686,7 +686,8 @@ static void z2_power_off(void) */ PSPR = 0x0; local_irq_disable(); - pxa27x_cpu_suspend(PWRMODE_DEEPSLEEP, PLAT_PHYS_OFFSET - PAGE_OFFSET); + pxa27x_set_pwrmode(PWRMODE_DEEPSLEEP); + pxa27x_cpu_pm_enter(PM_SUSPEND_MEM); } #else #define z2_power_off NULL