[U-Boot] [PATCH v6 04/11] clk: add clk_count()

Simon Glass sjg at chromium.org
Tue Jun 6 21:08:45 UTC 2017


On 5 June 2017 at 03:42,  <patrice.chotard at st.com> wrote:
> From: Patrice Chotard <patrice.chotard at st.com>
>
> Add clk_count() method to be able to get the number
> of clocks contained into a clock property. This will allow
> to allocate the right amount of memory in order to keep clock
> reference. These clock reference can be used later on error path
> or in .remove callback to release these clocks.
>
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---
>
> v6:     _ replace clk_get_by_index() by dev_read_phandle_with_args() in
>           clk_count()
> v5:     _ none
> v4:     _ add clk_count() method
>
>
>  drivers/clk/clk-uclass.c | 13 +++++++++++++
>  include/clk.h            | 12 ++++++++++++
>  2 files changed, 25 insertions(+)

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


More information about the U-Boot mailing list