diff options
author | Alexey Starikovskiy <alexey.y.starikovskiy@intel.com> | 2005-03-18 16:20:46 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-07-11 23:20:49 -0400 |
commit | e2a5b420f716cd1a46674b1a90389612eced916f (patch) | |
tree | 96f363f2e402d53428c046269514a82856b0cb34 /kernel/power | |
parent | be91492ca871e58f61b517cfba541095bb60001c (diff) | |
download | kernel_samsung_smdk4412-e2a5b420f716cd1a46674b1a90389612eced916f.zip kernel_samsung_smdk4412-e2a5b420f716cd1a46674b1a90389612eced916f.tar.gz kernel_samsung_smdk4412-e2a5b420f716cd1a46674b1a90389612eced916f.tar.bz2 |
[ACPI] ACPI poweroff fix
Register an "acpi" system device to be notified of shutdown preparation.
This depends on CONFIG_PM
http://bugzilla.kernel.org/show_bug.cgi?id=4041
Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'kernel/power')
-rw-r--r-- | kernel/power/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/main.c b/kernel/power/main.c index 4cdebc9..c7eb4a8 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c @@ -190,7 +190,7 @@ int software_suspend(void) int pm_suspend(suspend_state_t state) { - if (state > PM_SUSPEND_ON && state < PM_SUSPEND_MAX) + if (state > PM_SUSPEND_ON && state <= PM_SUSPEND_MAX) return enter_state(state); return -EINVAL; } |