Thermal: Remove the cooling_cpufreq_list.
authorhongbo.zhang <hongbo.zhang@linaro.com>
Tue, 30 Oct 2012 16:48:59 +0000 (17:48 +0100)
committerZhang Rui <rui.zhang@intel.com>
Wed, 7 Nov 2012 06:52:27 +0000 (14:52 +0800)
commit160b7d8048b87cb594e1a22b5345b468b6c2c40e
treedf54e9c1d6f594d3d7de7086736a54a29be5fc52
parent9c51b05a7852183ba9654ca850bee97d38e948d5
Thermal: Remove the cooling_cpufreq_list.

Problem of using this list is that the cpufreq_get_max_state callback will be
called when register cooling device by thermal_cooling_device_register, but
this list isn't ready at this moment. What's more, there is no need to maintain
such a list, we can get cpufreq_cooling_device instance by the private
thermal_cooling_device.devdata.

Signed-off-by: hongbo.zhang <hongbo.zhang@linaro.com>
Reviewed-by: Francesco Lavra <francescolavra.fl@gmail.com>
Reviewed-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/cpu_cooling.c