cpufreq: dbx500: Manage cooling device from cpufreq driver
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 14 Mar 2017 05:18:31 +0000 (10:48 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 15 Mar 2017 23:14:31 +0000 (00:14 +0100)
commit19678ffb9fd6f216f530714e62fb469a961874db
tree4d626647ea5a8b97b839925354f6697243ec90e9
parent6f19363503541ee6020d35b468a998c213bace36
cpufreq: dbx500: Manage cooling device from cpufreq driver

The best place to register the CPU cooling device is from the cpufreq
driver as we would know if all the resources are already available or
not. That's what is done for the cpufreq-dt.c driver as well.

The cpu-cooling driver for dbx500 platform was just (un)registering
with the thermal framework and that can be handled easily by the cpufreq
driver as well and in proper sequence as well.

Get rid of the cooling driver and its its users and manage everything
from the cpufreq driver instead.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/arm/boot/dts/ste-dbx5x0.dtsi
drivers/cpufreq/dbx500-cpufreq.c
drivers/thermal/Kconfig
drivers/thermal/Makefile
drivers/thermal/db8500_cpufreq_cooling.c [deleted file]