]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Fix compilation error with Canaan SoC
authorDamien Le Moal <damien.lemoal@wdc.com>
Thu, 11 Mar 2021 10:24:24 +0000 (19:24 +0900)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 17 Mar 2021 04:54:27 +0000 (21:54 -0700)
commit6849209216549ac0c2bae9aa6617521c34ad9adf
tree0ee0d7406e6b2bc3718f89c1f4f17be6236b8df6
parentaf9cb6da87494540c520afd025e550eef886d5a2
riscv: Fix compilation error with Canaan SoC

When CONFIG_SOC_CANAAN is selected, the K210 sysctl driver is always
compiled. Since this driver early init function calls the function
k210_clk_early_init() implemented by the K210 clk driver, this driver
must also always be selected for compilation ot avoid build failures.

Avoid such build failures by always selecting CONFIG_COMMON_CLK and
CONFIG_COMMON_CLK_K210 when CONFIG_SOC_CANAAN is enabled.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Fixes: 74badf054817 ("clk: Add RISC-V Canaan Kendryte K210 clock driver")
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig.socs