
2 Jun
2017
2 Jun
'17
4:56 a.m.
On 1 June 2017 at 05:36, patrice.chotard@st.com wrote:
From: Patrice Chotard patrice.chotard@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@st.com
v5: _ none v4: _ add clk_count() method
drivers/clk/clk-uclass.c | 12 ++++++++++++ include/clk.h | 12 ++++++++++++ 2 files changed, 24 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org