Skip to content

Commit fa59030

Browse files
damien-lemoalpalmer-dabbelt
authored andcommitted
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 <[email protected]> Signed-off-by: Damien Le Moal <[email protected]> Fixes: c6ca761 ("clk: Add RISC-V Canaan Kendryte K210 clock driver") Cc: [email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent bab1770 commit fa59030

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/riscv/Kconfig.socs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ config SOC_CANAAN
3131
select SIFIVE_PLIC
3232
select ARCH_HAS_RESET_CONTROLLER
3333
select PINCTRL
34+
select COMMON_CLK
35+
select COMMON_CLK_K210
3436
help
3537
This enables support for Canaan Kendryte K210 SoC platform hardware.
3638

0 commit comments

Comments
 (0)