Skip to contentSkip to conversation

patch "thermal: fix mtk_thermal build dependency" added to thermal-soc tree

PATCH Eduardo Valentin 1 participant 1 message Apr 20, 2016 Thermal

lore
Share & tools
lore
#0 lore raw

This is a simple automated notification to let you know that I've just added the patch titled

thermal: fix mtk_thermal build dependency

to my thermal-soc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal.git
in the fixes branch.

The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)

The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.

If you have any questions about this process, please let me know.

All the best,

Eduardo Valentin

----------

Quoted 1 line

From 4d1e34b3934068774ca41c099b678d57b8308560 Mon Sep 17 00:00:00 2001

From: Randy Dunlap <[email protected]>
Date: Tue, 19 Apr 2016 09:44:23 -0700
Subject: 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'

---
 drivers/thermal/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/thermal/Kconfig +1 -0
index 594748e..f6d2ff9 100644
@@ -366,6 +366,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
Signature · 1 line
2.1.4