PM / devfreq: make devfreq_class static
PATCH 2/2 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?
Cc MyungJoo Ham <[email protected]>
Cc Kyungmin Park <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Kevin Hilman <[email protected]>
Signed-off-by Nishanth Menon <[email protected]>
--- drivers/devfreq/devfreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/devfreq/devfreq.c +1 -1
@@ -27,7 +27,7 @@#include <linux/hrtimer.h> #include "governor.h" -struct class *devfreq_class; +static struct class *devfreq_class;/* * devfreq_work periodically monitors every registered device.
Signature · 1 line
1.7.9.5