linux/drivers/thermal
Eduardo Valentin 4ba115b1e1 thermal: cpu cooling: allow module builds
As thermal drivers can be built as modules and also
the thermal framework itself, building cpu cooling
only as built-in can cause linking errors. For instance:
* Generic Thermal sysfs driver
*
Generic Thermal sysfs driver (THERMAL) [M/n/y/?] m
  generic cpu cooling support (CPU_THERMAL) [N/y/?] (NEW) y

with the following drive:
CONFIG_OMAP_BANDGAP=m

generates:
ERROR: "cpufreq_cooling_unregister" [drivers/staging/omap-thermal/omap-thermal.ko] undefined!
ERROR: "cpufreq_cooling_register" [drivers/staging/omap-thermal/omap-thermal.ko] undefined!

This patch changes cpu cooling driver to allow it
to be built as module.

Reported-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Reviewed-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2012-11-22 15:59:52 +08:00
..
cpu_cooling.c thermal: cpu cooling: use const parameter while registering 2012-11-22 15:59:47 +08:00
db8500_cpufreq_cooling.c Thermal: Add ST-Ericsson DB8500 thermal driver. 2012-11-15 20:50:34 +08:00
db8500_thermal.c Thermal: Add ST-Ericsson DB8500 thermal driver. 2012-11-15 20:50:34 +08:00
exynos_thermal.c Thermal: Pass zone parameters as argument to tzd_register 2012-11-05 13:59:57 +08:00
fair_share.c thermal: fair_share: Add missing static storage class specifiers 2012-11-05 14:00:10 +08:00
Kconfig thermal: cpu cooling: allow module builds 2012-11-22 15:59:52 +08:00
Makefile Thermal: Add ST-Ericsson DB8500 thermal driver. 2012-11-15 20:50:34 +08:00
rcar_thermal.c thermal: rcar_thermal: remove explicitly used devm_kfree/iounap() 2012-11-07 11:35:46 +08:00
spear_thermal.c Thermal: Pass zone parameters as argument to tzd_register 2012-11-05 13:59:57 +08:00
step_wise.c thermal: step_wise: Add missing static storage class specifiers 2012-11-05 14:00:10 +08:00
thermal_core.h Thermal: Move thermal_instance to thermal_core.h 2012-11-05 13:56:32 +08:00
thermal_sys.c Thermal: Fix oops and unlocking in thermal_sys.c 2012-11-05 14:00:10 +08:00
user_space.c thermal: user_space: Add missing static storage class specifiers 2012-11-05 14:00:11 +08:00