提交 f242d919 编写于 作者: R Rafael J. Wysocki 提交者: Linus Torvalds

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: NRafael J. Wysocki <rjw@sisk.pl>
Acked-by: NPavel Machek <pavel@ucw.cz>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 e6c5eb95
...@@ -79,8 +79,6 @@ struct platform_suspend_ops { ...@@ -79,8 +79,6 @@ struct platform_suspend_ops {
}; };
#ifdef CONFIG_SUSPEND #ifdef CONFIG_SUSPEND
extern struct platform_suspend_ops *suspend_ops;
/** /**
* suspend_set_ops - set platform dependent suspend operations * suspend_set_ops - set platform dependent suspend operations
* @ops: The new suspend operations to set. * @ops: The new suspend operations to set.
......
...@@ -32,7 +32,7 @@ DEFINE_MUTEX(pm_mutex); ...@@ -32,7 +32,7 @@ DEFINE_MUTEX(pm_mutex);
/* This is just an arbitrary number */ /* This is just an arbitrary number */
#define FREE_PAGE_NUMBER (100) #define FREE_PAGE_NUMBER (100)
struct platform_suspend_ops *suspend_ops; static struct platform_suspend_ops *suspend_ops;
/** /**
* suspend_set_ops - Set the global suspend method table. * suspend_set_ops - Set the global suspend method table.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册