commit | 8ad66c51dbd595b1f59c5683e21937bad4901df5 | [log] [tgz] |
---|---|---|
author | Sean Anderson <sean.anderson@seco.com> | Tue Apr 20 10:50:54 2021 -0400 |
committer | Tom Rini <trini@konsulko.com> | Tue May 04 07:57:18 2021 -0400 |
tree | 9bd127f80bae5166b76c77123e8f2bafe644352f | |
parent | 62228e7453c2c6def0c539a0270edbed33947db4 [diff] |
dm: gpio: Fix gpio_get_list_count failing with livetree of_parse_phandle_with_args (called by dev_read_phandle_with_args) does not support getting the length of a phandle list by using the index -1. Instead, use dev_count_phandle_with_args which supports exactly this use-case. Fixes: 8558217153 ("gpio: Convert to use APIs which support live DT") Signed-off-by: Sean Anderson <sean.anderson@seco.com> Reviewed-by: Simon Glass <sjg@chromium.org>