projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c728950
)
pinctrl: pinconf-generic: add dt node names to error messages
author
Baruch Siach
<baruch@tkos.co.il>
Thu, 19 Mar 2015 20:17:42 +0000
(22:17 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Fri, 27 Mar 2015 08:53:10 +0000
(09:53 +0100)
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>
drivers/pinctrl/pinconf-generic.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pinctrl/pinconf-generic.c
b/drivers/pinctrl/pinconf-generic.c
index b5fbfb3584d98c7d88eff8400b115b3de80ec130..e63ad9fbd388a79c1afe0f1b4a2ff99e19a11574 100644
(file)
--- a/
drivers/pinctrl/pinconf-generic.c
+++ b/
drivers/pinctrl/pinconf-generic.c
@@
-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;
}