Merge tag 'devicetree-for-4.17' of git://git.kernel.org/pub/scm/linux/kernel/git...
[muen/linux.git] / drivers / gpio / gpiolib-of.c
index ed81d9a6316f4b9f588498e22ffb7a534b976a10..586d15137c03b85254c6b030b985abdaacdce537 100644 (file)
@@ -111,8 +111,8 @@ struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np,
        struct gpio_desc *desc;
        int ret;
 
-       ret = of_parse_phandle_with_args(np, propname, "#gpio-cells", index,
-                                        &gpiospec);
+       ret = of_parse_phandle_with_args_map(np, propname, "gpio", index,
+                                            &gpiospec);
        if (ret) {
                pr_debug("%s: can't parse '%s' property of node '%pOF[%d]'\n",
                        __func__, propname, np, index);