Re: [PATCH] clk: mmp2: fix link error without mmp2
From: Stephen Boyd
Date: Fri Apr 10 2020 - 22:07:13 EST
Quoting Arnd Bergmann (2020-04-08 09:05:07)
> 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: 5d34d0b32d6c ("clk: mmp2: Add support for PLL clock sources")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> ---
Applied to clk-fixes