diff mbox

[-next] thermal: fix mtk_thermal build dependency

Message ID 57166067.4090009@infradead.org (mailing list archive)
State Accepted
Headers show

Commit Message

Randy Dunlap April 19, 2016, 4:44 p.m. UTC
From: Randy Dunlap <rdunlap@infradead.org>

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>
 drivers/thermal/Kconfig |    1 +
 1 file changed, 1 insertion(+)

To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox


--- linux-next-20160419.orig/drivers/thermal/Kconfig
+++ linux-next-20160419/drivers/thermal/Kconfig
@@ -366,6 +366,7 @@  config MTK_THERMAL
 	tristate "Temperature sensor driver for mediatek SoCs"
 	depends on HAS_IOMEM
+	depends on NVMEM || NVMEM=n
 	default y
 	  Enable this option if you want to have support for thermal management