Quoting Maxime Ripard (2022-01-25 06:15:44) > index 266e8de3cb51..f365dac7be17 100644 > --- a/include/linux/clk.h > +++ b/include/linux/clk.h > @@ -1005,6 +1005,17 @@ static inline struct clk *clk_get_optional(struct device *dev, const char *id) > return clk; > } > > +/** > + * clk_drop_range - Reset any range set on that clock > + * @clk: clock source > + * > + * Returns success (0) or negative errno. > + */ > +static inline int clk_drop_range(struct clk *clk) > +{ > + return clk_set_rate_range(clk, 0, ULONG_MAX); > +} Please move this above clk_get_optional() as this is the "clk_get" zone of this file. > + > #if defined(CONFIG_OF) && defined(CONFIG_COMMON_CLK) > struct clk *of_clk_get(struct device_node *np, int index);