diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2007-10-18 06:04:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-18 17:37:18 -0400 |
commit | f242d9196fd1ef4e6bf0e50d2e7f32866fb145c2 (patch) | |
tree | f611d44e54e7633ff1d94169cf83485472127e08 | |
parent | e6c5eb9541f2197a3ffab90b1c7a3250a9b51bf6 (diff) |
PM: Make suspend_ops static
The variable suspend_ops representing the set of global platform-specific
suspend-related operations, used by the PM core, need not be exported outside
of kernel/power/main.c . Make it static.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | include/linux/suspend.h | 2 | ||||
-rw-r--r-- | kernel/power/main.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/suspend.h b/include/linux/suspend.h index 541f0c46d34f..dee416c5477f 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h | |||
@@ -79,8 +79,6 @@ struct platform_suspend_ops { | |||
79 | }; | 79 | }; |
80 | 80 | ||
81 | #ifdef CONFIG_SUSPEND | 81 | #ifdef CONFIG_SUSPEND |
82 | extern struct platform_suspend_ops *suspend_ops; | ||
83 | |||
84 | /** | 82 | /** |
85 | * suspend_set_ops - set platform dependent suspend operations | 83 | * suspend_set_ops - set platform dependent suspend operations |
86 | * @ops: The new suspend operations to set. | 84 | * @ops: The new suspend operations to set. |
diff --git a/kernel/power/main.c b/kernel/power/main.c index 7d09a9894947..fb2412e7a0ce 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c | |||
@@ -32,7 +32,7 @@ DEFINE_MUTEX(pm_mutex); | |||
32 | /* This is just an arbitrary number */ | 32 | /* This is just an arbitrary number */ |
33 | #define FREE_PAGE_NUMBER (100) | 33 | #define FREE_PAGE_NUMBER (100) |
34 | 34 | ||
35 | struct platform_suspend_ops *suspend_ops; | 35 | static struct platform_suspend_ops *suspend_ops; |
36 | 36 | ||
37 | /** | 37 | /** |
38 | * suspend_set_ops - Set the global suspend method table. | 38 | * suspend_set_ops - Set the global suspend method table. |