Re: [PATCH v2] clkdev: add devm_of_clk_get()

From: Kuninori Morimoto
Date: Thu Jul 07 2016 - 05:54:17 EST



Hi Michael

> > +struct clk *devm_of_clk_get(struct device *dev,
> > + struct device_node *np, int index)
>
> Any reason not to use devm_clk_get? Why do we need this helper?

Because of_clk_get() can parse "clocks", "#clock-cells" on DT.
And it can manage of_clk_provider.
But devm_clk_get() can't ?