On 5 June 2017 at 03:42, <patrice.chot...@st.com> wrote: > From: Patrice Chotard <patrice.chot...@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.chot...@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 <s...@chromium.org> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot