Skip to contentSkip to conversation

PM / devfreq: make devfreq_class static

PATCH New Nishanth Menon 1 participant 1 message Oct 15, 2012 Device frequency (devfreq)

lore
Share & tools
lore
#0 lore raw

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]>
---
 drivers/devfreq/devfreq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/devfreq/devfreq.c +1 -1
index 9f562ae..964e08d 100644
@@ -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