]> git.baikalelectronics.ru Git - kernel.git/commitdiff
clk: sunxi-ng: always select CCU_GATE
authorArnd Bergmann <arnd@arndb.de>
Thu, 27 Apr 2017 11:02:31 +0000 (13:02 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 28 Apr 2017 17:47:21 +0000 (10:47 -0700)
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: cd921787d1b2 ("clk: sunxi-ng: Add clk notifier to gate then ungate PLL clocks")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/sunxi-ng/Kconfig

index 1c23573010176b6a6ae1ae7d5bf578f56cd8350b..a077ab6edffae759564362b85fd596887ea7e89a 100644 (file)
@@ -16,7 +16,7 @@ config SUNXI_CCU_FRAC
        bool
 
 config SUNXI_CCU_GATE
-       bool
+       def_bool y
 
 config SUNXI_CCU_MUX
        bool