Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968421AbdD0LCz (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 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 991 Lines: 32 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 --- 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 -- 2.9.0