PM / Hibernate: Fix hibernation_platform_enter()
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 7 Jul 2010 21:43:18 +0000 (23:43 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 19 Jul 2010 00:00:35 +0000 (02:00 +0200)
The hibernation_platform_enter() function calls dpm_suspend_noirq()
instead of dpm_resume_noirq() by mistake.  Fix this.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Len Brown <len.brown@intel.com>
kernel/power/hibernate.c

index f612029..d97ba86 100644 (file)
@@ -530,7 +530,7 @@ int hibernation_platform_enter(void)
  Platform_finish:
        hibernation_ops->finish();
 
-       dpm_suspend_noirq(PMSG_RESTORE);
+       dpm_resume_noirq(PMSG_RESTORE);
 
  Resume_devices:
        entering_platform_hibernation = false;