From: Stephen Warren Date: Wed, 14 Aug 2013 21:27:12 +0000 (-0600) Subject: gpio: implement gpio-ranges binding document fix X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d9fe0039c4247383c2783923a3860227813b4d82;p=linux-beck.git 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 Acked-by: Mark Rutland Acked-by: Linus Walleij Signed-off-by: Grant Likely --- 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) return; for (;; index++) { - ret = of_parse_phandle_with_args(np, "gpio-ranges", - "#gpio-range-cells", index, &pinspec); + ret = of_parse_phandle_with_fixed_args(np, "gpio-ranges", 3, + index, &pinspec); if (ret) break;