summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq/devfreq.c
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2012-10-26 01:50:53 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-11-15 00:35:06 +0100
commit1a1357ea176670867f347419c3345e2becc07338 (patch)
tree8e4c2558a84c7f2d50ef16724726115e639ac33d /drivers/devfreq/devfreq.c
parent12e26265e6225bf93b2fdc70399774b31e2dd980 (diff)
downloadlinux-1a1357ea176670867f347419c3345e2becc07338.tar.gz
linux-1a1357ea176670867f347419c3345e2becc07338.tar.bz2
linux-1a1357ea176670867f347419c3345e2becc07338.zip
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 <nm@ti.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/devfreq/devfreq.c')
-rw-r--r--drivers/devfreq/devfreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
index 79a7343c28a6..789af4ff5c9c 100644
--- a/drivers/devfreq/devfreq.c
+++ b/drivers/devfreq/devfreq.c
@@ -27,7 +27,7 @@
#include <linux/hrtimer.h>
#include "governor.h"
-struct class *devfreq_class;
+static struct class *devfreq_class;
/*
* devfreq core provides delayed work based load monitoring helper