From: Nishanth Menon Date: Wed, 24 Oct 2012 00:39:17 +0000 (+0200) Subject: PM / devfreq: make devfreq_class static X-Git-Tag: next-20121025~36^2~6^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=170177b800244897d86dfe53ef253d0c82a46103;p=karo-tx-linux.git 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: Nishanth Menon Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index f47b07c7996e..2e7d26b4cfb3 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -27,7 +27,7 @@ #include #include "governor.h" -struct class *devfreq_class; +static struct class *devfreq_class; /* * devfreq core provides delayed work based load monitoring helper