提交 7784f4da 编写于 作者: K Kuninori Morimoto 提交者: Paul Mundt

sh: clkfwk: sh_clk_init_parent() should be called after clk_register()

sh_clk_init_parent() are using clk->mapped_reg
which is mapped in clk_register()
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 2dacb97d
......@@ -222,11 +222,11 @@ static int __init sh_clk_div6_register_ops(struct clk *clks, int nr,
clkp->ops = ops;
clkp->freq_table = freq_table + (k * freq_table_size);
clkp->freq_table[nr_divs].frequency = CPUFREQ_TABLE_END;
ret = sh_clk_init_parent(clkp);
ret = clk_register(clkp);
if (ret < 0)
break;
ret = clk_register(clkp);
ret = sh_clk_init_parent(clkp);
}
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册