]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 13 Apr 2017 09:10:40 +0000 (11:10 +0200)
commit5455a651bb5f6cb2c4f0883a8845e1fc1c187ea4
tree5f9300a3bbb87bd60bc8530634c6da927c5f0051
parent623c25c18d90acbcaede2a03cb962c329366ca19
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 <tobias.regnery@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi-ng/Kconfig