|
@@ -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);
|