# \[PATCH v2\] clkdev: add devm\_of\_clk\_get()

- From: Kuninori Morimoto \<kuninori.morimoto.gx@renesas.com\>
- Date: 2016-07-07 09:54:14 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2016/07/4790023
- Thread: https://ratatoskr.run/linux-devicetree/2016/07/4787652/t.md

```text

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 ?
```
