diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 17dd6e9439d1fa868842ac5ed6f08727e7234bda..5591ea71a8d14054bf923dcad45dc94f71bd029a 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -590,6 +590,12 @@ long __clk_mux_determine_rate_closest(struct clk_hw *hw, unsigned long rate, unsigned long *best_parent_rate, struct clk_hw **best_parent_p); +static inline void __clk_hw_set_clk(struct clk_hw *dst, struct clk_hw *src) +{ + dst->clk = src->clk; + dst->core = src->core; +} + /* * FIXME clock api without lock protection */