Skip to content

Commit 62e14f6

Browse files
rddunlapEduardo Valentin
authored andcommitted
thermal: fix mtk_thermal build dependency
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' Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Zhang Rui <rui.zhang@intel.com> Cc: Eduardo Valentin <edubezval@gmail.com> Cc: <linux-pm@vger.kernel.org> Cc: Sascha Hauer <s.hauer@pengutronix.de> Cc: Hanyi Wu <hanyi.wu@mediatek.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
1 parent 9ebfb4e commit 62e14f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/thermal/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ config MTK_THERMAL
376376
tristate "Temperature sensor driver for mediatek SoCs"
377377
depends on ARCH_MEDIATEK || COMPILE_TEST
378378
depends on HAS_IOMEM
379+
depends on NVMEM || NVMEM=n
379380
default y
380381
help
381382
Enable this option if you want to have support for thermal management

0 commit comments

Comments
 (0)