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

Simon Glass sjg at chromium.org
Wed Oct 30 01:48:38 UTC 2019


On Mon, 30 Sep 2019 at 06:29, Jean-Jacques Hiblot <jjhiblot at 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 at ti.com>
> ---
>
>  drivers/clk/clk-uclass.c | 48 ++++++++++++++++++++++++++++++++++++++++
>  include/clk.h            | 44 ++++++++++++++++++++++++++++++++++++
>  2 files changed, 92 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>

+Stephen Warren


More information about the U-Boot mailing list