From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933831AbcHaIzf (ORCPT ); Wed, 31 Aug 2016 04:55:35 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:33717 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933634AbcHaIxk (ORCPT ); Wed, 31 Aug 2016 04:53:40 -0400 From: Leo Yan To: Catalin Marinas , Will Deacon , Michael Turquette , Stephen Boyd , Zhang Rui , Eduardo Valentin , Arnd Bergmann , Simon Horman , Krzysztof Kozlowski , Thierry Reding , Riku Voipio , Srinivas Kandagatla , Rob Herring , Philipp Zabel Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, Guodong Xu , Amit Kucheria , Leo Yan Subject: [PATCH 2/3] thermal: hisilicon: fix for dependency Date: Wed, 31 Aug 2016 16:50:16 +0800 Message-Id: <1472633417-9330-3-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1472633417-9330-1-git-send-email-leo.yan@linaro.org> References: <1472633417-9330-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The thermal driver is standalone driver which is used to enable thermal sensors, so it can be used with any cooling device and should not bind with CPU cooling device driver. This original patch is suggested by Amit Kucheria; so it's to polish the dependency in Kconfig, and remove the dependency with CPU_THERMAL. Signed-off-by: Leo Yan --- drivers/thermal/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 2d702ca..91ebab3 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -177,8 +177,10 @@ config THERMAL_EMULATION config HISI_THERMAL tristate "Hisilicon thermal driver" - depends on (ARCH_HISI && CPU_THERMAL && OF) || COMPILE_TEST + depends on ARCH_HISI || COMPILE_TEST depends on HAS_IOMEM + depends on OF + default y help Enable this to plug hisilicon's thermal sensor driver into the Linux thermal framework. cpufreq is used as the cooling device to throttle -- 1.9.1