mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-05 18:56:15 +09:00
clk: imx8mm: fix clk set parent
Fix clk set parent, so we could still have correct clocks after parent changing. Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
d6498bc459
commit
7ddb4ef3e1
|
@ -191,7 +191,10 @@ static int imx8mm_clk_set_parent(struct clk *clk, struct clk *parent)
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
return clk_set_parent(c, cp);
|
ret = clk_set_parent(c, cp);
|
||||||
|
c->dev->parent = cp->dev;
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct clk_ops imx8mm_clk_ops = {
|
static struct clk_ops imx8mm_clk_ops = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user