thermal: st: fix Makefile typo
PATCH 1/1 thermal: st: fix Makefile typo
When STM32_THERMAL is enabled, this overrides all previously enabled files in the same directory, as seen from this link failure:
ERROR: "st_thermal_pm_ops" [drivers/thermal/st/st_thermal_syscfg.ko] undefined!
ERROR: "st_thermal_register" [drivers/thermal/st/st_thermal_syscfg.ko] undefined!
ERROR: "st_thermal_unregister" [drivers/thermal/st/st_thermal_syscfg.ko] undefined!
The correct syntax in Makefile requires using += instead of :=.
--- drivers/thermal/st/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/st/Makefile +1 -1
@@ -1,4 +1,4 @@ obj-$(CONFIG_ST_THERMAL) := st_thermal.o obj-$(CONFIG_ST_THERMAL_SYSCFG) += st_thermal_syscfg.o obj-$(CONFIG_ST_THERMAL_MEMMAP) += st_thermal_memmap.o -obj-$(CONFIG_STM32_THERMAL) := stm_thermal.o +obj-$(CONFIG_STM32_THERMAL) += stm_thermal.o
Signature · 1 line
2.20.0
Quoted 11 lines · Arnd Bergmann
When
STM32_THERMALis enabled, this overrides all previously enabled files in the same directory, as seen from this link failure:ERROR: "
st_thermal_pm_ops" [drivers/thermal/st/st_thermal_syscfg.ko] undefined!
ERROR: "st_thermal_register" [drivers/thermal/st/st_thermal_syscfg.ko] undefined!
ERROR: "st_thermal_unregister" [drivers/thermal/st/st_thermal_syscfg.ko] undefined!The correct syntax in
Makefilerequires using += instead of :=.Fixes 1d6931556073 ("thermal: add stm32 thermal driver")Signed-off-by Arnd Bergmann <[email protected]>
Quoted 16 lines
--- drivers/thermal/st/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/thermal/st/Makefile +1
-1@@ -1,4 +1,4 @@ obj-$(CONFIG_ST_THERMAL) := st_thermal.o obj-$(CONFIG_ST_THERMAL_SYSCFG) += st_thermal_syscfg.o obj-$(CONFIG_ST_THERMAL_MEMMAP) += st_thermal_memmap.o -obj-$(CONFIG_STM32_THERMAL) := stm_thermal.o +obj-$(CONFIG_STM32_THERMAL) += stm_thermal.o
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog