summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorFeng Hong <hongfeng@marvell.com>2012-09-19 14:16:00 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2012-09-19 14:16:00 +0200
commit997a031107ec962967ce36db9bc500f1fad491c1 (patch)
treeb191d37389ad3a44784c22e05dbc037877f882b4 /drivers/base
parentbbdc18a3fb6740619f0d037241c85dc6cd4517aa (diff)
downloadop-kernel-dev-997a031107ec962967ce36db9bc500f1fad491c1.zip
op-kernel-dev-997a031107ec962967ce36db9bc500f1fad491c1.tar.gz
PM / Sleep: use resume event when call dpm_resume_early
When dpm_suspend_noirq fail, state is PMSG_SUSPEND, should change to PMSG_RESUME when dpm_resume_early is called Signed-off-by: Feng Hong <hongfeng@marvell.com> Signed-off-by: Raul Xiong <xjian@marvell.com> Signed-off-by: Neil Zhang <zhangwm@marvell.com> Cc: stable@vger.kernel.org Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/power/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index 0113adc..2700f2e 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -996,7 +996,7 @@ int dpm_suspend_end(pm_message_t state)
error = dpm_suspend_noirq(state);
if (error) {
- dpm_resume_early(state);
+ dpm_resume_early(resume_event(state));
return error;
}
OpenPOWER on IntegriCloud