diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-12-04 09:41:51 +0530 |
---|---|---|
committer | Kevin Hilman <khilman@linaro.org> | 2015-06-05 15:42:12 -0700 |
commit | 2942d914260f33c108136defce355f8c6e9c9694 (patch) | |
tree | 55607c750ec3f450074ed287599ece01524a5db7 | |
parent | 40852f669b1405c700e90862cf5d90fcfcdd2b84 (diff) |
thermal: cpu_cooling: no need to set cpufreq_state to zero
Its already zero, we allocated cpufreq_dev with kzalloc.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
(cherry picked from commit 92e615ec82c0314fb480eeb19396f4ac15bf97ef)
Signed-off-by: Kevin Hilman <khilman@linaro.org>
-rw-r--r-- | drivers/thermal/cpu_cooling.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 537856127f78..30e2ecbb75a7 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -499,7 +499,7 @@ __cpufreq_cooling_register(struct device_node *np, return cool_dev; } cpufreq_dev->cool_dev = cool_dev; - cpufreq_dev->cpufreq_state = 0; + mutex_lock(&cooling_cpufreq_lock); /* Register the notifier for first cpufreq cooling device */ |