]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
PM / Sleep: use resume event when call dpm_resume_early
authorFeng Hong <hongfeng@marvell.com>
Wed, 19 Sep 2012 12:16:00 +0000 (14:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:46:56 +0000 (05:46 +0900)
commit 997a031107ec962967ce36db9bc500f1fad491c1 upstream.

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>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/power/main.c

index 742fcbe12ccf872f97a0724538bf9887a54f0933..9d54dceeddada30e772feb9b61628c97e346e1a3 100644 (file)
@@ -994,7 +994,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;
        }