]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
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 f61202916631db8cf972c4c68d2f9ec7934dc45e..d97ba8615c30ea1903937469ff1cf2daedb8ed4d 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;