mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
clk: scmi: fix set_parent support when CCF is not being used
When not using Common clock framework(CCF), calls to
scmi_clk_set_parent returns -ENOTSUPP, which should not be the case.
Fix that.
Fixes: 15fdfef664 ("clk: scmi: check the clock state/parent/rate
control permissions)
Signed-off-by: Kamlesh Gurudasani <kamlesh@ti.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
committed by
Peng Fan
parent
0619cb3203
commit
66cb830291
@@ -377,7 +377,7 @@ static int scmi_clk_set_parent(struct clk *clk, struct clk *parent)
|
||||
int ret;
|
||||
|
||||
if (!CONFIG_IS_ENABLED(CLK_CCF))
|
||||
return -ENOTSUPP;
|
||||
return __scmi_clk_set_parent(clk, parent);
|
||||
|
||||
ret = clk_get_by_id(clk->id, &c);
|
||||
if (ret)
|
||||
|
||||
Reference in New Issue
Block a user