[PATCH 1/6] clk: clk-composite: fix callback guard in clk_composite_round_rate
Jules Maselbas
jmaselbas at zdiv.net
Thu Nov 7 06:57:17 PST 2024
In the function clk_composite_round_rate a test for a NULL function pointer
guard the call to the round_rate callback but doesn't check for the correct
callback: it should be round_rate instead of set_rate
Signed-off-by: Jules Maselbas <jmaselbas at zdiv.net>
---
drivers/clk/clk-composite.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c
index 454bfaeb0c..fdf53ce75e 100644
--- a/drivers/clk/clk-composite.c
+++ b/drivers/clk/clk-composite.c
@@ -65,7 +65,7 @@ static long clk_composite_round_rate(struct clk_hw *hw, unsigned long rate,
if (!(hw->clk.flags & CLK_SET_RATE_NO_REPARENT) &&
mux_clk &&
- mux_clk->ops->set_rate)
+ mux_clk->ops->round_rate)
return mux_clk->ops->round_rate(clk_to_clk_hw(mux_clk), rate, prate);
return *prate;
--
2.46.2
More information about the barebox
mailing list