Re: [PATCH] clk: imx: fix build failure on i.MX SCU clk

From: Stephen Boyd
Date: Sat Dec 05 2020 - 00:42:57 EST


Quoting Arnd Bergmann (2020-12-03 15:07:52)
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> When CONFIG_MXC_CLK_SCU is enabled, but CONFIG_CLK_IMX8QXP is not,
> the kernel fails to link with:
>
> aarch64-linux-ld: no input files
> make[5]: *** [scripts/Makefile.build:434: drivers/clk/imx/clk-imx-scu.o] Error 1
> aarch64-linux-ld: no input files
> make[5]: *** [scripts/Makefile.build:434: drivers/clk/imx/clk-imx-lpcg-scu.o] Error 1
>
> The only sensible configuration at the moment is to have both mean
> the same thing, so make hide the first one to avoid broken
> configurations.
>
> Fixes: e0d0d4d86c76 ("clk: imx8qxp: Support building i.MX8QXP clock driver as module")
> Reported-by: Anders Roxell <anders.roxell@xxxxxxxxxx>
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Dong sent something similar at
https://lore.kernel.org/r/20201130084624.21113-1-aisheng.dong@xxxxxxx