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:
Kamlesh Gurudasani
2025-11-04 16:49:30 +05:30
committed by Peng Fan
parent 0619cb3203
commit 66cb830291

View File

@@ -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)