1
0
Fork 0

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

This makes the error message much more useful.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
hifive-unleashed-5.1
Baruch Siach 2015-03-19 22:17:42 +02:00 committed by Linus Walleij
parent c7289500e2
commit 4024efb404
1 changed files with 4 additions and 2 deletions

View File

@ -307,14 +307,16 @@ int pinconf_generic_dt_subnode_to_map(struct pinctrl_dev *pctldev,
if (ret < 0) {
/* EINVAL=missing, which is fine since it's optional */
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;
}
ret = pinconf_generic_parse_dt_config(np, pctldev, &configs,
&num_configs);
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;
}