Merge tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux
[kernel/kernel-generic.git] / drivers / gpio / gpiolib-of.c
index ba9876f..0dfaf20 100644 (file)
@@ -195,8 +195,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;