mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00: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
1 changed files with 4 additions and 1 deletions
|
@ -191,7 +191,10 @@ static int imx8mm_clk_set_parent(struct clk *clk, struct clk *parent)
|
|||
if (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 = {
|
||||
|
|
Loading…
Add table
Reference in a new issue