OSDN Git Service

clk: sunxi-ng: fix build error without CONFIG_RESET_CONTROLLER
authorTobias Regnery <tobias.regnery@gmail.com>
Mon, 27 Mar 2017 09:57:53 +0000 (11:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:05:50 +0000 (11:05 +0100)
commit89b6f091e7d7d4724aadb489026f2a5b5044af5e
tree93d94bd126da265cec0d072b53c170798ed177af
parent1dc6839336341d4091a3bc33379c32cdd4fc1139
clk: sunxi-ng: fix build error without CONFIG_RESET_CONTROLLER

commit aa01338c018469274848a973bcbd287ef341937c upstream.

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 <tobias.regnery@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/sunxi-ng/Kconfig