gpio: implement gpio-ranges binding document fix
Use the new of_parse_phandle_with_fixed_args() to implement the corrected gpio-ranges DT property definition. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Grant Likely <grant.likely@linaro.org>
This commit is contained in:
parent
91d9942c28
commit
d9fe0039c4
|
@ -194,8 +194,8 @@ static void of_gpiochip_add_pin_range(struct gpio_chip *chip)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (;; index++) {
|
for (;; index++) {
|
||||||
ret = of_parse_phandle_with_args(np, "gpio-ranges",
|
ret = of_parse_phandle_with_fixed_args(np, "gpio-ranges", 3,
|
||||||
"#gpio-range-cells", index, &pinspec);
|
index, &pinspec);
|
||||||
if (ret)
|
if (ret)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue