提交 eddf8176 编写于 作者: L Lothar Waßmann 提交者: Linus Walleij

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

Signed-off-by: NLothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 e56aee18
......@@ -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,
&gg_data.gpiospec);
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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册