thermal: imx: Calling imx_thermal_unregister_legacy_cooling() in .remove
authorAnson Huang <Anson.Huang@nxp.com>
Fri, 13 Mar 2020 08:28:14 +0000 (16:28 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 20 Mar 2020 11:17:48 +0000 (12:17 +0100)
commit9db11010f27b9e96417a3a4d0b61115eed7fbb48
tree90ff056819e9e76ffc1699896983919247e129b8
parentce68eeca8f26c9691513d8f94ceaca0040585f52
thermal: imx: Calling imx_thermal_unregister_legacy_cooling() in .remove

imx_thermal_unregister_legacy_cooling() should be used for handling
legacy cpufreq cooling cleanups in .remove callback instead of
calling cpufreq_cooling_unregister() and cpufreq_cpu_put() directly,
especially for !CONFIG_CPU_FREQ scenario, no operation needed for
handling legacy cpufreq cooling cleanups at all.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/1584088094-24857-1-git-send-email-Anson.Huang@nxp.com
drivers/thermal/imx_thermal.c