瀏覽代碼

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>
Kuninori Morimoto 13 年之前
父節點
當前提交
64dea57588
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/sh/clk/cpg.c

+ 1 - 1
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;