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>
This commit is contained in:
parent
2485a4b610
commit
64dea57588
|
@ -190,7 +190,7 @@ static int __init sh_clk_init_parent(struct clk *clk)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
clk->parent = clk->parent_table[val];
|
clk_reparent(clk, clk->parent_table[val]);
|
||||||
if (!clk->parent) {
|
if (!clk->parent) {
|
||||||
pr_err("sh_clk_init_parent: unable to set parent");
|
pr_err("sh_clk_init_parent: unable to set parent");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
Loading…
Reference in a new issue