On 20-09-21, 20:22, Dmitry Osipenko wrote: > Add resource-managed variants of dev_pm_opp_of_add_table_indexed() and > dev_pm_opp_of_add_table_noclk(), allowing drivers to remove boilerplate > code. > > Signed-off-by: Dmitry Osipenko <digetx@xxxxxxxxx> > --- > drivers/opp/of.c | 46 +++++++++++++++++++++++++++++++++++------- > include/linux/pm_opp.h | 12 +++++++++++ > 2 files changed, 51 insertions(+), 7 deletions(-) > > diff --git a/drivers/opp/of.c b/drivers/opp/of.c > index 2a97c6535c4c..bd01ecb1d85c 100644 > --- a/drivers/opp/of.c > +++ b/drivers/opp/of.c > @@ -1081,6 +1081,17 @@ static void devm_pm_opp_of_table_release(void *data) > dev_pm_opp_of_remove_table(data); > } > > +static int devm_of_add_table_indexed(struct device *dev, int index, bool getclk) Made this _devm_of_add_table_indexed() and applied this patch. Thanks. What about rest of the series ? -- viresh