]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
thermal: fix mtk_thermal build dependency
authorRandy Dunlap <rdunlap@infradead.org>
Tue, 19 Apr 2016 16:44:23 +0000 (09:44 -0700)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 20 Apr 2016 23:22:46 +0000 (16:22 -0700)
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>
drivers/thermal/Kconfig

index c37eedc35a240d0d3fe4387698f50e7884e52cfc..5c7711091964ca56d0859d4bcfed309798f7b663 100644 (file)
@@ -376,6 +376,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