Skip to content

Commit aa01338

Browse files
Toreg87mripard
authored andcommitted
clk: sunxi-ng: fix build error without CONFIG_RESET_CONTROLLER
With CONFIG_RESET_CONTROLLER=n we get the following link error in the sunxi-ng clk driver: drivers/built-in.o: In function `sunxi_ccu_probe': mux-core.c:(.text+0x12fe68): undefined reference to 'reset_controller_register' mux-core.c:(.text+0x12fe68): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol 'reset_controller_register' Fix this by adding the appropriate select statement. Signed-off-by: Tobias Regnery <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
1 parent b467e08 commit aa01338

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/sunxi-ng/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
config SUNXI_CCU
22
bool "Clock support for Allwinner SoCs"
33
depends on ARCH_SUNXI || COMPILE_TEST
4+
select RESET_CONTROLLER
45
default ARCH_SUNXI
56

67
if SUNXI_CCU

0 commit comments

Comments
 (0)