diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/pm34xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index b07efb26de18..488d595d8e4b 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c | |||
@@ -326,7 +326,6 @@ static int omap3_pm_suspend(void) | |||
326 | restore: | 326 | restore: |
327 | /* Restore next_pwrsts */ | 327 | /* Restore next_pwrsts */ |
328 | list_for_each_entry(pwrst, &pwrst_list, node) { | 328 | list_for_each_entry(pwrst, &pwrst_list, node) { |
329 | set_pwrdm_state(pwrst->pwrdm, pwrst->saved_state); | ||
330 | state = pwrdm_read_prev_pwrst(pwrst->pwrdm); | 329 | state = pwrdm_read_prev_pwrst(pwrst->pwrdm); |
331 | if (state > pwrst->next_state) { | 330 | if (state > pwrst->next_state) { |
332 | printk(KERN_INFO "Powerdomain (%s) didn't enter " | 331 | printk(KERN_INFO "Powerdomain (%s) didn't enter " |
@@ -334,6 +333,7 @@ restore: | |||
334 | pwrst->pwrdm->name, pwrst->next_state); | 333 | pwrst->pwrdm->name, pwrst->next_state); |
335 | ret = -1; | 334 | ret = -1; |
336 | } | 335 | } |
336 | set_pwrdm_state(pwrst->pwrdm, pwrst->saved_state); | ||
337 | } | 337 | } |
338 | if (ret) | 338 | if (ret) |
339 | printk(KERN_ERR "Could not enter target state in pm_suspend\n"); | 339 | printk(KERN_ERR "Could not enter target state in pm_suspend\n"); |