aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/cpu_cooling.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index 99a5d7551b33..9050c1b0573c 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -351,7 +351,7 @@ struct thermal_cooling_device *cpufreq_cooling_register(
351 struct cpufreq_cooling_device *cpufreq_dev = NULL; 351 struct cpufreq_cooling_device *cpufreq_dev = NULL;
352 unsigned int cpufreq_dev_count = 0, min = 0, max = 0; 352 unsigned int cpufreq_dev_count = 0, min = 0, max = 0;
353 char dev_name[THERMAL_NAME_LENGTH]; 353 char dev_name[THERMAL_NAME_LENGTH];
354 int ret = 0, id = 0, i; 354 int ret = 0, i;
355 struct cpufreq_policy policy; 355 struct cpufreq_policy policy;
356 356
357 list_for_each_entry(cpufreq_dev, &cooling_cpufreq_list, node) 357 list_for_each_entry(cpufreq_dev, &cooling_cpufreq_list, node)
@@ -396,7 +396,6 @@ struct thermal_cooling_device *cpufreq_cooling_register(
396 kfree(cpufreq_dev); 396 kfree(cpufreq_dev);
397 return ERR_PTR(-EINVAL); 397 return ERR_PTR(-EINVAL);
398 } 398 }
399 cpufreq_dev->id = id;
400 cpufreq_dev->cool_dev = cool_dev; 399 cpufreq_dev->cool_dev = cool_dev;
401 cpufreq_dev->cpufreq_state = 0; 400 cpufreq_dev->cpufreq_state = 0;
402 mutex_lock(&cooling_cpufreq_lock); 401 mutex_lock(&cooling_cpufreq_lock);