
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 reset_count() method to be able to get the number of resets contained into a resets property. This will allow to allocate the right amount of memory in order to keep resets reference. These resets reference can be used later on error path or in .remove callback to release these resets.
Signed-off-by: Patrice Chotard patrice.chotard@st.com
v5: _ replace fdtdec_parse_phandle_with_args() by dev_read_phandle_with_args() v4: _ add reset_count() method
drivers/reset/reset-uclass.c | 13 +++++++++++++ include/reset.h | 11 +++++++++++ 2 files changed, 24 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org