summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2004-10-18 08:52:43 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-18 08:52:43 -0700
commit678ab4ca3c8709f6b8e51db4735dc7054d50c321 (patch)
treedad48065faf1a88df884eac2ea58c06082c1a64a
parentfa7f7d6442eb677ec4a70632ed61f7fce0f4e56a (diff)
[PATCH] acpi proc: error handling
Propagate the software_suspend() return value. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/acpi/sleep/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/sleep/proc.c b/drivers/acpi/sleep/proc.c
index 666498e387d9..a94d946e14a8 100644
--- a/drivers/acpi/sleep/proc.c
+++ b/drivers/acpi/sleep/proc.c
@@ -70,7 +70,7 @@ acpi_system_write_sleep (
state = simple_strtoul(str, NULL, 0);
#ifdef CONFIG_SOFTWARE_SUSPEND
if (state == 4) {
- software_suspend();
+ error = software_suspend();
goto Done;
}
#endif