summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2009-07-08 22:28:05 +0200
committerDave Jones <davej@redhat.com>2009-09-01 18:45:09 +0200
commit54e6fe167b8787460ee39e7c333b96e3e2e6a196 (patch)
treef8aa48949e3b70a1e8887844741b3a9685c28047 /drivers/cpufreq
parent[CPUFREQ] update Doc for cpuinfo_cur_freq and scaling_cur_freq (diff)
downloadlinux-54e6fe167b8787460ee39e7c333b96e3e2e6a196.tar.xz
linux-54e6fe167b8787460ee39e7c333b96e3e2e6a196.zip
[CPUFREQ] Reduce scope of cpu_sys_dev in cpufreq_add_dev
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 2968ed6a9c49..ce31e6e3d982 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -773,7 +773,6 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)
struct cpufreq_policy new_policy;
struct cpufreq_policy *policy;
struct freq_attr **drv_attr;
- struct sys_device *cpu_sys_dev;
unsigned long flags;
unsigned int j;
@@ -936,6 +935,7 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)
/* symlink affected CPUs */
for_each_cpu(j, policy->cpus) {
struct cpufreq_policy *managed_policy;
+ struct sys_device *cpu_sys_dev;
if (j == cpu)
continue;