ARM: pxa/z2: fix building error of pxa27x_cpu_suspend() no longer available
authorEric Miao <eric.y.miao@gmail.com>
Sun, 11 Sep 2011 09:19:11 +0000 (17:19 +0800)
committerEric Miao <eric.y.miao@gmail.com>
Sat, 8 Oct 2011 13:02:44 +0000 (21:02 +0800)
Cc: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-pxa/include/mach/pxa27x.h
arch/arm/mach-pxa/z2.c

index b9b1bdc4baccdcc4da734089f135106df3750a13..7cff640582b8b9cb1daec1c7788264ae2f0735fe 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __MACH_PXA27x_H
 #define __MACH_PXA27x_H
 
+#include <linux/suspend.h>
 #include <mach/hardware.h>
 #include <mach/pxa2xx-regs.h>
 #include <mach/mfp-pxa27x.h>
@@ -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
 
index 6c9275a20c91d6735e1ee656b332816e3aaf3a86..a82d4207f23586f45e43a68c9264b81092046807 100644 (file)
@@ -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