[CPUFREQ] Reduce scope of cpu_sys_dev in cpufreq_add_dev

Signed-off-by: Dave Jones <davej@redhat.com>
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 2968ed6..ce31e6e 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -773,7 +773,6 @@
 	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 @@
 	/* symlink affected CPUs */
 	for_each_cpu(j, policy->cpus) {
 		struct cpufreq_policy *managed_policy;
+		struct sys_device *cpu_sys_dev;
 
 		if (j == cpu)
 			continue;