
30 Oct
2019
30 Oct
'19
2:48 a.m.
On Mon, 30 Sep 2019 at 06:29, Jean-Jacques Hiblot jjhiblot@ti.com 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 the data structure manually.
Signed-off-by: Jean-Jacques Hiblot jjhiblot@ti.com
drivers/clk/clk-uclass.c | 48 ++++++++++++++++++++++++++++++++++++++++ include/clk.h | 44 ++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org
+Stephen Warren