clk: k210: Fix k210_clk_set_parent()
authorDamien Le Moal <damien.lemoal@wdc.com>
Tue, 22 Jun 2021 06:45:02 +0000 (15:45 +0900)
committerStephen Boyd <sboyd@kernel.org>
Wed, 30 Jun 2021 18:34:36 +0000 (11:34 -0700)
commitfaa0e307948594b4379a86fff7fb2409067aed6f
treebf91ae414498d4bffc1092065a8aff1cdaeaba5b
parent2cdee50eda9d87f4fabba3df00caa4cc873f30ab
clk: k210: Fix k210_clk_set_parent()

In k210_clk_set_parent(), add missing writel() call to update the mux
register of a clock to change its parent. This also fixes a compilation
warning with clang when compiling with W=1.

Fixes: c6ca7616f7d5 ("clk: Add RISC-V Canaan Kendryte K210 clock driver")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Link: https://lore.kernel.org/r/20210622064502.14841-1-damien.lemoal@wdc.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-k210.c