mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02: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:
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user