thermal: imx: fix for dependency on cpu-freq
authorAnson Huang <anson.huang@nxp.com>
Wed, 21 Nov 2018 05:49:36 +0000 (05:49 +0000)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 2 Jan 2019 12:47:12 +0000 (04:47 -0800)
commitc589c56671c914fbd6b56a6f92dce80edbbfdada
tree2f49329b823a3b0551214d2e43a7e978802a957a
parent4ab248b3b10a58e379e2d32333fff99ea5ca256c
thermal: imx: fix for dependency on cpu-freq

The thermal driver is a standalone driver for monitoring SoC temperature
by enabling thermal sensor, so it can be enabled even when CONFIG_CPU_FREQ
is NOT set. So remove the dependency with CPU_THERMAL.

Introduce dummy function of legacy cooling register/unregister to make
thermal driver probe successfully when CONFIG_CPU_FREQ is NOT set.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/Kconfig
drivers/thermal/imx_thermal.c