diff options
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpiolib-of.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 665f9530c950..48cda3c9ee94 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c | |||
@@ -194,8 +194,8 @@ static void of_gpiochip_add_pin_range(struct gpio_chip *chip) | |||
194 | return; | 194 | return; |
195 | 195 | ||
196 | for (;; index++) { | 196 | for (;; index++) { |
197 | ret = of_parse_phandle_with_args(np, "gpio-ranges", | 197 | ret = of_parse_phandle_with_fixed_args(np, "gpio-ranges", 3, |
198 | "#gpio-range-cells", index, &pinspec); | 198 | index, &pinspec); |
199 | if (ret) | 199 | if (ret) |
200 | break; | 200 | break; |
201 | 201 | ||