Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64dea575 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Paul Mundt
Browse files

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: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 2485a4b6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;