Skip to content
Commit 07546bd8 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: default avatarSimon Glass <sjg@chromium.org>
parent 4abda4f5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment