From patchwork Thu Apr 27 11:02:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9702733 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 30FBD602CC for ; Thu, 27 Apr 2017 11:04:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37200262F2 for ; Thu, 27 Apr 2017 11:04:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 29F2A283FE; Thu, 27 Apr 2017 11:04:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E016262F2 for ; Thu, 27 Apr 2017 11:04:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936092AbdD0LCz (ORCPT ); Thu, 27 Apr 2017 07:02:55 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:52199 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932229AbdD0LCy (ORCPT ); Thu, 27 Apr 2017 07:02:54 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0Leu47-1dtZ3n3DNH-00qiV7; Thu, 27 Apr 2017 13:02:08 +0200 From: Arnd Bergmann To: Maxime Ripard , Chen-Yu Tsai , Michael Turquette , Stephen Boyd Cc: Arnd Bergmann , Icenowy Zheng , Tobias Regnery , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: sunxi-ng: always select CCU_GATE Date: Thu, 27 Apr 2017 13:02:31 +0200 Message-Id: <20170427110239.2389266-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:ogJWm7PrUd7rEXoj/GF16AigAKkWPsmIvCryqr7od6XAdq/cR0b 7m1dbDdNspRN1yUuYs3yUtmKzLnnDfm+EHrdvlQYRsISSFWtZpFZZr//7QipWAYMEj0GeTS 7WD3puHomVJQy+fqK0AFFglYJT5HMsaWvZJfzM8dw6a4lKFcob7N04nB+/Nbd2eORcVKDJU YjCSqVVgkZ54c5eOsMWLA== X-UI-Out-Filterresults: notjunk:1; V01:K0:l1iaCpmWPU4=:FSkr420fvOxPBrvnSET0JC rXdw/PpHBy3zLSDioZfKu/P8OdbD/SQeiskWA+KKZ8i2LkgqU4sse/4bba3ptNHpO/rS7ZuG1 fTgWny36HCy4vfclKvGIWvHcyjDl+r233yYn0HVZYIPtuaw1YoMna9pOUevvMizbFe+hsQDXu 1OLT2yHSuDJoFv15klxJPyXkWlFOjkRIGiNu1Hnf//1ZAYP/CVdh22E14ALai5xxmg1k0OnEa xAfBJMUneuag2ewJIrYRZq12z5ZXEXW4iNoTin/mI3z+eRbV76fUkxD9wA5rS8LBMfvJlLEU9 X/g4767stmRWc4DLI9pLJFN64W4jQMiwqOFMq8arqeaOihdZZ2NIYTwbASRHbdCTHYhOKS01b 9Dd7SIsUfMuxwhTpujJFMr9MX7VQ0DuYs/5f/gjd0+uaOCyv1uDQmgkSqhxkM/MtJAv2NMqh3 7ucLUvVk7itTDNMUoRpCIV2OZTVVxfBgjpXiQDh+6kRkFv8lDKRckc0r6NUvkcyHsfFpmmPVy YY938LCRjhPaJvzv04Rio6/ZRUfgj6ESfqYHfEYfrm5xhaVPEMEblRZDoQ1KDVUXAhPnCnRdt YXX8wZ0qvVvE8pvEN3V1XHRYzytJavcbXiI1hOaQqynp9KssnS+hjnNpZr5g0njJVU5Q7dKCn ywvL1GNOBz6p58JICMIZUSZtQj+0hxEy1oZtyfbkEadXC2seYoaLlsP3QaoCJThkdBns= Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When the base driver is enabled but all SoC specific drivers are turned off, we now get a build error after code was added to always refer to the clk gates: drivers/clk/built-in.o: In function `ccu_pll_notifier_cb': :(.text+0x154f8): undefined reference to `ccu_gate_helper_disable' :(.text+0x15504): undefined reference to `ccu_gate_helper_enable' This changes the Kconfig to always require the gate code to be built-in when CONFIG_SUNXI_CCU is set. Fixes: 02ae2bc6febd ("clk: sunxi-ng: Add clk notifier to gate then ungate PLL clocks") Signed-off-by: Arnd Bergmann Acked-by: Maxime Ripard --- drivers/clk/sunxi-ng/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/Kconfig b/drivers/clk/sunxi-ng/Kconfig index 64088e599404..b0d551a8efe4 100644 --- a/drivers/clk/sunxi-ng/Kconfig +++ b/drivers/clk/sunxi-ng/Kconfig @@ -16,7 +16,7 @@ config SUNXI_CCU_FRAC bool config SUNXI_CCU_GATE - bool + def_bool y config SUNXI_CCU_MUX bool