Skip to content
Commit 52720c53 authored by Jean-Jacques Hiblot's avatar Jean-Jacques Hiblot Committed by Lukasz Majewski
Browse files

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: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
parent 8a1661f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment