diff options
author | Sven Wegener <sven.wegener@stealer.net> | 2008-09-20 10:50:08 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2008-10-09 13:52:44 -0400 |
commit | c4d14bc0bb5d13e316890651ae4518b764c3344c (patch) | |
tree | 7d5acc195e454ea9def4d0a627f69f7317d6dd5d /drivers/cpufreq/cpufreq_userspace.c | |
parent | 808009131046b62ac434dbc796c0fe8accaab415 (diff) |
[CPUFREQ] Don't export governors for default governor
We don't need to export the governors for use as the default governor,
because the default governor will be built-in anyway and we can access
the symbol directly.
This also fixes the following sparse warnings:
drivers/cpufreq/cpufreq_conservative.c:578:25: warning: symbol 'cpufreq_gov_conservative' was not declared. Should it be static?
drivers/cpufreq/cpufreq_ondemand.c:582:25: warning: symbol 'cpufreq_gov_ondemand' was not declared. Should it be static?
drivers/cpufreq/cpufreq_performance.c:39:25: warning: symbol 'cpufreq_gov_performance' was not declared. Should it be static?
drivers/cpufreq/cpufreq_powersave.c:38:25: warning: symbol 'cpufreq_gov_powersave' was not declared. Should it be static?
drivers/cpufreq/cpufreq_userspace.c:190:25: warning: symbol 'cpufreq_gov_userspace' was not declared. Should it be static?
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_userspace.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_userspace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_userspace.c b/drivers/cpufreq/cpufreq_userspace.c index 32244aa7cc0c..1442bbada053 100644 --- a/drivers/cpufreq/cpufreq_userspace.c +++ b/drivers/cpufreq/cpufreq_userspace.c | |||
@@ -187,6 +187,9 @@ static int cpufreq_governor_userspace(struct cpufreq_policy *policy, | |||
187 | } | 187 | } |
188 | 188 | ||
189 | 189 | ||
190 | #ifndef CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE | ||
191 | static | ||
192 | #endif | ||
190 | struct cpufreq_governor cpufreq_gov_userspace = { | 193 | struct cpufreq_governor cpufreq_gov_userspace = { |
191 | .name = "userspace", | 194 | .name = "userspace", |
192 | .governor = cpufreq_governor_userspace, | 195 | .governor = cpufreq_governor_userspace, |
@@ -194,7 +197,6 @@ struct cpufreq_governor cpufreq_gov_userspace = { | |||
194 | .show_setspeed = show_speed, | 197 | .show_setspeed = show_speed, |
195 | .owner = THIS_MODULE, | 198 | .owner = THIS_MODULE, |
196 | }; | 199 | }; |
197 | EXPORT_SYMBOL(cpufreq_gov_userspace); | ||
198 | 200 | ||
199 | static int __init cpufreq_gov_userspace_init(void) | 201 | static int __init cpufreq_gov_userspace_init(void) |
200 | { | 202 | { |