Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent e56aee18
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
	}