Skip to content
Snippets Groups Projects
Commit 430e136d authored by Sean Anderson's avatar Sean Anderson Committed by Tom Rini
Browse files

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: 85582171 ("gpio: Convert to use APIs which support live DT")

Signed-off-by: default avatarSean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
parent 8ddaf943
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment