PM / Suspend: Do not ignore error codes returned by suspend_enter()
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 22 Apr 2011 20:00:54 +0000 (22:00 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Tue, 17 May 2011 21:19:16 +0000 (23:19 +0200)
commit3c431936087e93d2219a184a8e19eaa68077e379
tree65b9bd696100c808ae02d6c235990a2c4fbb7104
parentc1d10d18c542278b7fbc413c289d3cb6219da6b3
PM / Suspend: Do not ignore error codes returned by suspend_enter()

The current implementation of suspend-to-RAM returns 0 if there is an
error from suspend_enter(), because suspend_devices_and_enter() ignores
the return value from suspend_enter().  This patch addresses this issue
and properly keep the error return from suspend_enter() and let
suspend_devices_and_enter relay the error return.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/power/suspend.c