From: Kuninori Morimoto Date: Thu, 19 Jan 2012 09:00:40 +0000 (-0800) Subject: sh: clkfwk: bugfix: use clk_reparent() for div6 clocks X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=64dea57588f49736c2a7778292f3967c7984ab94;p=~shefty%2Frdma-dev.git 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 Signed-off-by: Paul Mundt --- diff --git a/drivers/sh/clk/cpg.c b/drivers/sh/clk/cpg.c index 45fee368b09..92d314a73f6 100644 --- a/drivers/sh/clk/cpg.c +++ b/drivers/sh/clk/cpg.c @@ -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;