Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1378828 > unrolled thread

[PATCH] thermal: fix Mediatek thermal controller build

Started byJohannes Berg <johannes@sipsolutions.net>
First post2016-04-14 15:20 +0200
Last post2016-04-14 15:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] thermal: fix Mediatek thermal controller build Johannes Berg <johannes@sipsolutions.net> - 2016-04-14 15:20 +0200

#1378828 — [PATCH] thermal: fix Mediatek thermal controller build

FromJohannes Berg <johannes@sipsolutions.net>
Date2016-04-14 15:20 +0200
Subject[PATCH] thermal: fix Mediatek thermal controller build
Message-ID<rnPlF-2aV-11@gated-at.bofh.it>
From: Johannes Berg <johannes.berg@intel.com>

At least with CONFIG_COMPILE_TEST, there's no reason to assume
that CONFIG_RESET_CONTROLLER is set, but the code for this
controller requires it since it calls device_reset().

Make CONFIG_MTK_THERMAL properly depend on CONFIG_RESET_CONTROLLER.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 drivers/thermal/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index c37eedc35a24..30079ef8b15c 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -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 RESET_CONTROLLER
 	default y
 	help
 	  Enable this option if you want to have support for thermal management
-- 
2.7.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web