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

Commit 4024efb4 authored by Baruch Siach's avatar Baruch Siach Committed by Linus Walleij
Browse files

pinctrl: pinconf-generic: add dt node names to error messages



This makes the error message much more useful.

Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent c7289500
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -307,14 +307,16 @@ int pinconf_generic_dt_subnode_to_map(struct pinctrl_dev *pctldev,
	if (ret < 0) {
	if (ret < 0) {
		/* EINVAL=missing, which is fine since it's optional */
		/* EINVAL=missing, which is fine since it's optional */
		if (ret != -EINVAL)
		if (ret != -EINVAL)
			dev_err(dev, "could not parse property function\n");
			dev_err(dev, "%s: could not parse property function\n",
				of_node_full_name(np));
		function = NULL;
		function = NULL;
	}
	}


	ret = pinconf_generic_parse_dt_config(np, pctldev, &configs,
	ret = pinconf_generic_parse_dt_config(np, pctldev, &configs,
					      &num_configs);
					      &num_configs);
	if (ret < 0) {
	if (ret < 0) {
		dev_err(dev, "could not parse node property\n");
		dev_err(dev, "%s: could not parse node property\n",
			of_node_full_name(np));
		return ret;
		return ret;
	}
	}