Skip to content

Commit

Permalink
clk: sunxi-ng: always select CCU_GATE
Browse files Browse the repository at this point in the history
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: 02ae2bc ("clk: sunxi-ng: Add clk notifier to gate then ungate PLL clocks")
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
  • Loading branch information
arndb authored and bebarino committed Apr 28, 2017
1 parent e759030 commit 36c02d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/sunxi-ng/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ config SUNXI_CCU_FRAC
bool

config SUNXI_CCU_GATE
bool
def_bool y

config SUNXI_CCU_MUX
bool
Expand Down

0 comments on commit 36c02d0

Please sign in to comment.