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 <[email protected]>
Signed-off-by: Raul Xiong <[email protected]>
Signed-off-by: Neil Zhang <[email protected]>
Cc: [email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
Feng Hong 2012-09-19 14:16:00 +02:00 • committed by Rafael J. Wysocki
commit 997a031107

View file

@ -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;
}