diff options
author | Kevin Hilman <khilman@ti.com> | 2011-06-26 19:01:07 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-07-15 17:58:19 -0400 |
commit | a5e4fd8783a2bec861ecf1138cdc042269ff59aa (patch) | |
tree | 0662c2283c8d8601aa152f70a0d0abbe128fec9b /kernel/power | |
parent | 3b5fe85252326217cd96f24a7bda4460d8f71bee (diff) |
PM / Suspend: Export suspend_set_ops, suspend_valid_only_mem
Some platforms wish to implement their PM core suspend code as
modules. To do so, these functions need to be exported to modules.
[rjw: Replaced EXPORT_SYMBOL with EXPORT_SYMBOL_GPL]
Reported-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'kernel/power')
-rw-r--r-- | kernel/power/suspend.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c index b6762f43365d..b6b71ad2208f 100644 --- a/kernel/power/suspend.c +++ b/kernel/power/suspend.c | |||
@@ -44,6 +44,7 @@ void suspend_set_ops(const struct platform_suspend_ops *ops) | |||
44 | suspend_ops = ops; | 44 | suspend_ops = ops; |
45 | mutex_unlock(&pm_mutex); | 45 | mutex_unlock(&pm_mutex); |
46 | } | 46 | } |
47 | EXPORT_SYMBOL_GPL(suspend_set_ops); | ||
47 | 48 | ||
48 | bool valid_state(suspend_state_t state) | 49 | bool valid_state(suspend_state_t state) |
49 | { | 50 | { |
@@ -65,6 +66,7 @@ int suspend_valid_only_mem(suspend_state_t state) | |||
65 | { | 66 | { |
66 | return state == PM_SUSPEND_MEM; | 67 | return state == PM_SUSPEND_MEM; |
67 | } | 68 | } |
69 | EXPORT_SYMBOL_GPL(suspend_valid_only_mem); | ||
68 | 70 | ||
69 | static int suspend_test(int level) | 71 | static int suspend_test(int level) |
70 | { | 72 | { |