]> git.baikalelectronics.ru Git - kernel.git/commit
clk: mmp2: fix link error without mmp2
authorArnd Bergmann <arnd@arndb.de>
Wed, 8 Apr 2020 16:05:07 +0000 (18:05 +0200)
committerStephen Boyd <sboyd@kernel.org>
Mon, 13 Apr 2020 19:20:06 +0000 (12:20 -0700)
commit3ae674535c2ff67a6c9ac2d4724b2c9285717c53
tree8a57585ce8c3d7497b23eba953a7a8fab47fd7c4
parent085446e67672aee87c41a4906d9638077169a591
clk: mmp2: fix link error without mmp2

The newly added function is only built into the kernel if mmp2
is enabled, causing a link error otherwise.

arm-linux-gnueabi-ld: drivers/clk/mmp/clk.o: in function `mmp_register_pll_clks':
clk.c:(.text+0x6dc): undefined reference to `mmp_clk_register_pll'

Move it to a different file to get it to link.

Fixes: e38a96628e7b ("clk: mmp2: Add support for PLL clock sources")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lkml.kernel.org/r/20200408160518.2798571-1-arnd@arndb.de
Reported-by: Guenter Roeck <linux@roeck-us.net>
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mmp/clk-pll.c
drivers/clk/mmp/clk.c
drivers/clk/mmp/clk.h