Skip to content

Commit

Permalink
PM / devfreq: make devfreq_class static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nishanth Menon authored and Rafael J. Wysocki committed Nov 14, 2012
1 parent 12e2626 commit 1a1357e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/devfreq/devfreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a1357e

Please sign in to comment.