Skip to content

Commit

Permalink
sh: clkfwk: bugfix: use clk_reparent() for div6 clocks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Paul Mundt committed Jan 24, 2012
1 parent 2485a4b commit 64dea57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/sh/clk/cpg.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ static int __init sh_clk_init_parent(struct clk *clk)
return -EINVAL;
}

clk->parent = clk->parent_table[val];
clk_reparent(clk, clk->parent_table[val]);
if (!clk->parent) {
pr_err("sh_clk_init_parent: unable to set parent");
return -EINVAL;
Expand Down

0 comments on commit 64dea57

Please sign in to comment.