Commit 64dea57588f49736c2a7778292f3967c7984ab94

Authored by Kuninori Morimoto
Committed by Paul Mundt
1 parent 2485a4b610

sh: clkfwk: bugfix: use clk_reparent() for div6 clocks

Various problems will happen if clk parent was set up directly.
it should use clk_reparent()

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/sh/clk/cpg.c
... ... @@ -190,7 +190,7 @@
190 190 return -EINVAL;
191 191 }
192 192  
193   - clk->parent = clk->parent_table[val];
  193 + clk_reparent(clk, clk->parent_table[val]);
194 194 if (!clk->parent) {
195 195 pr_err("sh_clk_init_parent: unable to set parent");
196 196 return -EINVAL;