diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2016-04-19 12:44:23 -0400 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2016-04-20 19:22:46 -0400 |
commit | 62e14f6fd383f756ff3fe5f6fb7aa5b546bb47e3 (patch) | |
tree | ea74f86c78061ee2bbf14eebefa808af8c604f45 /drivers/thermal/Kconfig | |
parent | 9ebfb4e09959b03b58b65b5a6c04f70dd57d4f6b (diff) |
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>
Diffstat (limited to 'drivers/thermal/Kconfig')
-rw-r--r-- | drivers/thermal/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index c37eedc35a24..5c7711091964 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig | |||
@@ -376,6 +376,7 @@ config MTK_THERMAL | |||
376 | tristate "Temperature sensor driver for mediatek SoCs" | 376 | tristate "Temperature sensor driver for mediatek SoCs" |
377 | depends on ARCH_MEDIATEK || COMPILE_TEST | 377 | depends on ARCH_MEDIATEK || COMPILE_TEST |
378 | depends on HAS_IOMEM | 378 | depends on HAS_IOMEM |
379 | depends on NVMEM || NVMEM=n | ||
379 | default y | 380 | default y |
380 | help | 381 | help |
381 | Enable this option if you want to have support for thermal management | 382 | Enable this option if you want to have support for thermal management |