linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] thermal: fix mtk_thermal build dependency
@ 2016-04-19 16:44 Randy Dunlap
  2016-04-20  1:18 ` 答复: " Hanyi Wu (吴含贻)
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2016-04-19 16:44 UTC (permalink / raw)
  To: LKML, Linux PM list; +Cc: Zhang Rui, Eduardo Valentin, Sascha Hauer, Hanyi Wu

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(+)

--- 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 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* 答复: [PATCH -next] thermal: fix mtk_thermal build dependency
  2016-04-19 16:44 [PATCH -next] thermal: fix mtk_thermal build dependency Randy Dunlap
@ 2016-04-20  1:18 ` Hanyi Wu (吴含贻)
  0 siblings, 0 replies; 2+ messages in thread
From: Hanyi Wu (吴含贻) @ 2016-04-20  1:18 UTC (permalink / raw)
  To: Randy Dunlap, LKML, Linux PM list,
	Dawei Chien (錢大衛)
  Cc: Zhang Rui, Eduardo Valentin, Sascha Hauer, Fan Chen (陳凡)

HI Dawei,

Please help to check it, Thanks

Best Regards
Hanyi

-----邮件原件-----
发件人: Randy Dunlap [mailto:rdunlap@infradead.org] 
发送时间: Wednesday, April 20, 2016 12:44 AM
收件人: LKML <linux-kernel@vger.kernel.org>; Linux PM list <linux-pm@vger.kernel.org>
抄送: Zhang Rui <rui.zhang@intel.com>; Eduardo Valentin <edubezval@gmail.com>; Sascha Hauer <s.hauer@pengutronix.de>; Hanyi Wu (吴含贻) <hanyi.wu@mediatek.com>
主题: [PATCH -next] thermal: fix mtk_thermal build dependency

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(+)

--- 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 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-20  1:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-19 16:44 [PATCH -next] thermal: fix mtk_thermal build dependency Randy Dunlap
2016-04-20  1:18 ` 答复: " Hanyi Wu (吴含贻)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).