Commit ba4a90a6 authored by Eric Miao's avatar Eric Miao

ARM: pxa/z2: fix building error of pxa27x_cpu_suspend() no longer available

Cc: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarEric Miao <eric.y.miao@gmail.com>
parent e227e88a
#ifndef __MACH_PXA27x_H #ifndef __MACH_PXA27x_H
#define __MACH_PXA27x_H #define __MACH_PXA27x_H
#include <linux/suspend.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/pxa2xx-regs.h> #include <mach/pxa2xx-regs.h>
#include <mach/mfp-pxa27x.h> #include <mach/mfp-pxa27x.h>
...@@ -21,6 +22,7 @@ ...@@ -21,6 +22,7 @@
extern void __init pxa27x_map_io(void); extern void __init pxa27x_map_io(void);
extern void __init pxa27x_init_irq(void); extern void __init pxa27x_init_irq(void);
extern int __init pxa27x_set_pwrmode(unsigned int mode); 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 #define pxa27x_handle_irq ichp_handle_irq
......
...@@ -686,7 +686,8 @@ static void z2_power_off(void) ...@@ -686,7 +686,8 @@ static void z2_power_off(void)
*/ */
PSPR = 0x0; PSPR = 0x0;
local_irq_disable(); 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 #else
#define z2_power_off NULL #define z2_power_off NULL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment