提交 1a1357ea 编写于 作者: N Nishanth Menon 提交者: Rafael J. Wysocki

PM / devfreq: make devfreq_class static

devfreq_class is used internally by devfreq and has no
need to be globally available.

This also fixes the following sparse warning:
drivers/devfreq/devfreq.c:30:14: warning: symbol 'devfreq_class' was not declared. Should it be static?
Signed-off-by: NNishanth Menon <nm@ti.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 12e26265
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include <linux/hrtimer.h> #include <linux/hrtimer.h>
#include "governor.h" #include "governor.h"
struct class *devfreq_class; static struct class *devfreq_class;
/* /*
* devfreq core provides delayed work based load monitoring helper * devfreq core provides delayed work based load monitoring helper
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册