clk_hw_reparent does a bit of work in Linux to update the cached clock tree, but we have no cached clock tree in barebox, so just implement it as empty stub. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- include/linux/clk.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/clk.h b/include/linux/clk.h index 28ed2d2bfd66..18fda074fd95 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -431,6 +431,11 @@ struct clk_divider { extern const struct clk_ops clk_divider_ops; extern const struct clk_ops clk_divider_ro_ops; +static inline void clk_hw_reparent(struct clk_hw *hw, struct clk_hw *new_parent) +{ + /* clk_get_parent always reads from HW, so nothing to update here */ +} + unsigned long divider_recalc_rate(struct clk *clk, unsigned long parent_rate, unsigned int val, const struct clk_div_table *table, -- 2.39.2