diff options
author | Peng Fan <peng.fan@nxp.com> | 2020-06-27 15:48:04 +0800 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-07-14 15:23:47 +0800 |
commit | 7ddb4ef3e178ddea1ad117b9a14357b13afb6e92 (patch) | |
tree | b3164805c56541e7bed316ef7baad6d128decaf0 | |
parent | d6498bc4594c8042a2fb221e8876cb8bba4b7105 (diff) |
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>
-rw-r--r-- | drivers/clk/imx/clk-imx8mm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 66c9601b0c..d609fad7ac 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -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 = { |