mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-07 03:18:31 +00:00
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>
This commit is contained in:
parent
98d522f056
commit
92e615ec82
1 changed files with 1 additions and 1 deletions
|
@ -499,7 +499,7 @@ __cpufreq_cooling_register(struct device_node *np,
|
||||||
return cool_dev;
|
return cool_dev;
|
||||||
}
|
}
|
||||||
cpufreq_dev->cool_dev = cool_dev;
|
cpufreq_dev->cool_dev = cool_dev;
|
||||||
cpufreq_dev->cpufreq_state = 0;
|
|
||||||
mutex_lock(&cooling_cpufreq_lock);
|
mutex_lock(&cooling_cpufreq_lock);
|
||||||
|
|
||||||
/* Register the notifier for first cpufreq cooling device */
|
/* Register the notifier for first cpufreq cooling device */
|
||||||
|
|
Loading…
Reference in a new issue