commit | 6e66b2db7c667efa49bc00780516ccbdbd761d34 | [log] [tgz] |
---|---|---|
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | Tue Oct 22 14:00:04 2019 +0200 |
committer | Lukasz Majewski <lukma@denx.de> | Tue Oct 22 16:14:05 2019 +0200 |
tree | 190272b13beda559e06c6ad8c274014b1a267854 | |
parent | 718039b529f9c04c287414b413ea6a89f20727ad [diff] |
drivers: clk: Add a managed API to get clocks from the device-tree 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>