Skip to contentSkip to conversation

thermal: fix mtk_thermal build dependency

PATCH In review Randy Dunlap 2 participants 2 messages Apr 19, 2016 – Apr 20, 2016 Thermal

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal: fix mtk_thermal build dependency

From: Randy Dunlap <[email protected]>

Fix build errors when MTK_THERMAL=y and NVMEM=m by preventing that Kconfig combination.

drivers/built-in.o: In function `mtk_thermal_probe':
mtk_thermal.c:(.text+0xffa8f): undefined reference to nvmem_cell_get' mtk_thermal.c:(.text+0xffabe): undefined reference to nvmem_cell_read' mtk_thermal.c:(.text+0xffac9): undefined reference to `nvmem_cell_put'

Cc Zhang Rui <[email protected]>
Cc Eduardo Valentin <[email protected]>
Cc Sascha Hauer <[email protected]>
Cc Hanyi Wu <[email protected]>
---
 drivers/thermal/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/thermal/Kconfig +1 -0
@@ -366,6 +366,7 @@ config MTK_THERMAL
 	tristate "Temperature sensor driver for mediatek SoCs"
 	depends on ARCH_MEDIATEK || COMPILE_TEST
 	depends on HAS_IOMEM
+	depends on NVMEM || NVMEM=n
 	default y
 	help
 	  Enable this option if you want to have support for thermal management
#1 lore raw

HI Dawei,

Please help to check it, Thanks

Best Regards
Hanyi

-----邮件原件-----
发件人: Randy Dunlap [mailto:[email protected]]
发送时间: Wednesday, April 20, 2016 12:44 AM
收件人: LKML <[email protected]>; Linux PM list <[email protected]>
抄送: Zhang Rui <[email protected]>; Eduardo Valentin <[email protected]>; Sascha Hauer <[email protected]>; Hanyi Wu (吴含贻) <[email protected]> 主题: [PATCH -next] thermal: fix mtk_thermal build dependency

From: Randy Dunlap <[email protected]>

Fix build errors when MTK_THERMAL=y and NVMEM=m by preventing that Kconfig combination.

drivers/built-in.o: In function `mtk_thermal_probe':
mtk_thermal.c:(.text+0xffa8f): undefined reference to nvmem_cell_get' mtk_thermal.c:(.text+0xffabe): undefined reference to nvmem_cell_read' mtk_thermal.c:(.text+0xffac9): undefined reference to `nvmem_cell_put'

Cc Zhang Rui <[email protected]>
Cc Eduardo Valentin <[email protected]>
Cc Sascha Hauer <[email protected]>
Cc Hanyi Wu <[email protected]>
---
 drivers/thermal/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/thermal/Kconfig +1 -0
@@ -366,6 +366,7 @@ config MTK_THERMAL
 	tristate "Temperature sensor driver for mediatek SoCs"
 	depends on ARCH_MEDIATEK || COMPILE_TEST
 	depends on HAS_IOMEM
+	depends on NVMEM || NVMEM=n
 	default y
 	help
 	  Enable this option if you want to have support for thermal management