Commit eddf8176 authored by Lothar Waßmann's avatar Lothar Waßmann Committed by Linus Walleij

gpio: gpiolib-of.c: make error message more meaningful by adding the node name and index

Signed-off-by: default avatarLothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent e56aee18
...@@ -76,7 +76,8 @@ int of_get_named_gpio_flags(struct device_node *np, const char *propname, ...@@ -76,7 +76,8 @@ int of_get_named_gpio_flags(struct device_node *np, const char *propname,
ret = of_parse_phandle_with_args(np, propname, "#gpio-cells", index, ret = of_parse_phandle_with_args(np, propname, "#gpio-cells", index,
&gg_data.gpiospec); &gg_data.gpiospec);
if (ret) { if (ret) {
pr_debug("%s: can't parse gpios property\n", __func__); pr_debug("%s: can't parse gpios property of node '%s[%d]'\n",
__func__, np->full_name, index);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment