Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62e14f6f authored by Randy Dunlap's avatar Randy Dunlap Committed by Eduardo Valentin
Browse files

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: default avatarRandy 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: default avatarEduardo Valentin <edubezval@gmail.com>
parent 9ebfb4e0
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -376,6 +376,7 @@ config MTK_THERMAL
	tristate "Temperature sensor driver for mediatek SoCs"
	tristate "Temperature sensor driver for mediatek SoCs"
	depends on ARCH_MEDIATEK || COMPILE_TEST
	depends on ARCH_MEDIATEK || COMPILE_TEST
	depends on HAS_IOMEM
	depends on HAS_IOMEM
	depends on NVMEM || NVMEM=n
	default y
	default y
	help
	help
	  Enable this option if you want to have support for thermal management
	  Enable this option if you want to have support for thermal management