diff options
Diffstat (limited to 'arch/arm/plat-s3c/pm.c')
-rw-r--r-- | arch/arm/plat-s3c/pm.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/arch/arm/plat-s3c/pm.c b/arch/arm/plat-s3c/pm.c index 78bf50a14027..a0ca18a75b0e 100644 --- a/arch/arm/plat-s3c/pm.c +++ b/arch/arm/plat-s3c/pm.c | |||
@@ -254,10 +254,6 @@ static int s3c_pm_enter(suspend_state_t state) | |||
254 | return -EINVAL; | 254 | return -EINVAL; |
255 | } | 255 | } |
256 | 256 | ||
257 | /* prepare check area if configured */ | ||
258 | |||
259 | s3c_pm_check_prepare(); | ||
260 | |||
261 | /* store the physical address of the register recovery block */ | 257 | /* store the physical address of the register recovery block */ |
262 | 258 | ||
263 | s3c_sleep_save_phys = virt_to_phys(regs_save); | 259 | s3c_sleep_save_phys = virt_to_phys(regs_save); |
@@ -329,8 +325,23 @@ static int s3c_pm_enter(suspend_state_t state) | |||
329 | return 0; | 325 | return 0; |
330 | } | 326 | } |
331 | 327 | ||
328 | static int s3c_pm_prepare(void) | ||
329 | { | ||
330 | /* prepare check area if configured */ | ||
331 | |||
332 | s3c_pm_check_prepare(); | ||
333 | return 0; | ||
334 | } | ||
335 | |||
336 | static void s3c_pm_finish(void) | ||
337 | { | ||
338 | s3c_pm_check_cleanup(); | ||
339 | } | ||
340 | |||
332 | static struct platform_suspend_ops s3c_pm_ops = { | 341 | static struct platform_suspend_ops s3c_pm_ops = { |
333 | .enter = s3c_pm_enter, | 342 | .enter = s3c_pm_enter, |
343 | .prepare = s3c_pm_prepare, | ||
344 | .finish = s3c_pm_finish, | ||
334 | .valid = suspend_valid_only_mem, | 345 | .valid = suspend_valid_only_mem, |
335 | }; | 346 | }; |
336 | 347 | ||