diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2012-02-13 10:29:24 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-02-17 17:36:10 -0500 |
commit | 93e1ee43a72b11e1b50aab87046c131a836a4456 (patch) | |
tree | 86897d0bec41d2040f371d2bf2951f1f35bf727d /kernel/power/suspend.c | |
parent | 55ae451918ec62e553f11b6118fec157f90c31c3 (diff) |
PM / Sleep: Make enter_state() in kernel/power/suspend.c static
The enter_state() function in kernel/power/suspend.c should be
static and state_store() in kernel/power/suspend.c should call
pm_suspend() instead of it, so make that happen (which also reduces
code duplication related to suspend statistics).
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/power/suspend.c')
-rw-r--r-- | kernel/power/suspend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c index e6b5ef958603..4914358a0543 100644 --- a/kernel/power/suspend.c +++ b/kernel/power/suspend.c | |||
@@ -272,7 +272,7 @@ static void suspend_finish(void) | |||
272 | * Fail if that's not the case. Otherwise, prepare for system suspend, make the | 272 | * Fail if that's not the case. Otherwise, prepare for system suspend, make the |
273 | * system enter the given sleep state and clean up after wakeup. | 273 | * system enter the given sleep state and clean up after wakeup. |
274 | */ | 274 | */ |
275 | int enter_state(suspend_state_t state) | 275 | static int enter_state(suspend_state_t state) |
276 | { | 276 | { |
277 | int error; | 277 | int error; |
278 | 278 | ||