Re: [U-Boot] [PATCH v1 2/5] drivers: clk: Add a managed API to get clocks from the device-tree

2019-10-29 Thread Simon Glass
On Mon, 30 Sep 2019 at 06:29, Jean-Jacques Hiblot wrote: > > Add devm_clk_get(), devm_clk_get_optional() to get clocks from the > device-tree. The clocks is automatically released and the data structure > freed when the device is unbound. > Also add devm_clk_put() to release the clock and free

[U-Boot] [PATCH v1 2/5] drivers: clk: Add a managed API to get clocks from the device-tree

2019-09-30 Thread Jean-Jacques Hiblot
Add devm_clk_get(), devm_clk_get_optional() to get clocks from the device-tree. The clocks is automatically released and the data structure freed when the device is unbound. Also add devm_clk_put() to release the clock and free the data structure manually. Signed-off-by: Jean-Jacques Hiblot ---