From patchwork Tue Mar 24 11:33:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 6078211 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4CC4EBF90F for ; Tue, 24 Mar 2015 11:36:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6F722201ED for ; Tue, 24 Mar 2015 11:36:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4326F201E4 for ; Tue, 24 Mar 2015 11:36:38 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YaN6S-0002KT-Tl; Tue, 24 Mar 2015 11:34:36 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YaN6G-0002Al-4f for linux-arm-kernel@lists.infradead.org; Tue, 24 Mar 2015 11:34:25 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NLP00K9JS4O2410@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 24 Mar 2015 20:34:00 +0900 (KST) X-AuditID: cbfee61b-f79d76d0000024d6-cd-55114ba8c12f Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D0.0F.09430.8AB41155; Tue, 24 Mar 2015 20:34:00 +0900 (KST) Received: from amdc1032.localnet ([106.116.147.136]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NLP00EIHS4NZF50@mmp1.samsung.com>; Tue, 24 Mar 2015 20:34:00 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: "Rafael J. Wysocki" Subject: [PATCH] cpufreq: exynos: allow build for !THERMAL or !CPU_THERMAL cases Date: Tue, 24 Mar 2015 12:33:53 +0100 Message-id: <2205924.4OPTnU534j@amdc1032> User-Agent: KMail/4.8.4 (Linux/3.2.0-70-generic-pae; KDE/4.8.5; i686; ; ) MIME-version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRmVeSWpSXmKPExsVy+t9jAd0V3oKhBrtWaFj8nXSM3WL+lWus Fv2PXzNbvHm4mdFi02Mg9/KuOWwWn3uPMFrMOL+PyeLM6UusFhu/ejhwefz+NYnRY+esu+we m1Z1snncubaHzWPzknqPLVfbWTz6tqxi9Pi8SS6AI4rLJiU1J7MstUjfLoEr49b8f8wFD7kq fm07w9jA2MzZxcjJISFgIrFj9nI2CFtM4sK99UA2F4eQwCJGif8bXzNCON8YJWbsnMQOUsUm YCUxsX0VI4gtIqAtMbfnFDOIzSywn1li0mVBEFtYIEDiy/JJLCA2i4CqxJGtZ8BsXgFNiY/9 K8FsUQFPiZ3TDzBCxAUlfky+xwIxR15i3/6prBC2lsT6nceZJjDyzUJSNgtJ2SwkZQsYmVcx iqYWJBcUJ6XnGukVJ+YWl+al6yXn525iBIf7M+kdjKsaLA4xCnAwKvHwBiwRCBViTSwrrsw9 xCjBwawkwiusIhgqxJuSWFmVWpQfX1Sak1p8iFGag0VJnFfJvi1ESCA9sSQ1OzW1ILUIJsvE wSnVwJh1XIQr7f3evzo1FxY9nPo17YqIQUnp3hh+0a4JtmluZ1oSbGLc+p2q3qV5nFux+Bg7 py03p+siljc8TTNSXLK4356IcZo4vZHf4VirBpfvhNY1vad8XyxYFZ7uX7Pi/F01DdMnNzmv HNLaOvtuV56ji46Ubt1v36VXSu0itCPjvdZ4zl4jpMRSnJFoqMVcVJwIAGdayJtzAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150324_043424_409110_593461E7 X-CRM114-Status: GOOD ( 11.68 ) X-Spam-Score: -5.0 (-----) Cc: Lukasz Majewski , linux-samsung-soc , Arnd Bergmann , "linux-pm@vger.kernel.org" , Viresh Kumar , Linux Kernel Mailing List , Eduardo Valentin , Kukjin Kim , "linux-arm-kernel@lists.infradead.org" X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Allow driver build for !THERMAL or !CPU_THERMAL cases. The new dependency rule is the same as the one that CPUFREQ_DT option has (for cpufreq-dt driver which has the same issue with using of_cpufreq_cooling_register()). Cc: Kukjin Kim Cc: Arnd Bergmann Cc: Eduardo Valentin Cc: Lukasz Majewski Fixes: 8b2b4a4e5366 ("cpufreq: exynos: allow modular build") Acked-by: Viresh Kumar Signed-off-by: Bartlomiej Zolnierkiewicz --- Hi Rafael, please apply this patch. It has been ACKed by Viresh already. drivers/cpufreq/Kconfig.arm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 1b06fc4..f4df4af3 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -28,7 +28,8 @@ config ARM_VEXPRESS_SPC_CPUFREQ config ARM_EXYNOS_CPUFREQ tristate "SAMSUNG EXYNOS CPUfreq Driver" depends on CPU_EXYNOS4210 || SOC_EXYNOS4212 || SOC_EXYNOS4412 || SOC_EXYNOS5250 - depends on THERMAL + # if CPU_THERMAL is on and THERMAL=m, ARM_EXYNOS_CPUFREQ cannot be =y: + depends on !CPU_THERMAL || THERMAL help This adds the CPUFreq driver for Samsung EXYNOS platforms. Supported SoC versions are: