diff options
| author | Baruch Siach <baruch@tkos.co.il> | 2015-03-19 16:17:42 -0400 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2015-03-27 04:53:10 -0400 |
| commit | 4024efb4047df0f317065571bd6ee9de3ab79512 (patch) | |
| tree | 626e925e2e92cf39e40f0f10e26cc37b21164ff3 /drivers/pinctrl | |
| parent | c7289500e29df3441a7167861424e7d77a167dfb (diff) | |
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>
Diffstat (limited to 'drivers/pinctrl')
| -rw-r--r-- | drivers/pinctrl/pinconf-generic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinconf-generic.c b/drivers/pinctrl/pinconf-generic.c index b5fbfb3584d9..e63ad9fbd388 100644 --- 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, | |||
| 307 | if (ret < 0) { | 307 | if (ret < 0) { |
| 308 | /* EINVAL=missing, which is fine since it's optional */ | 308 | /* EINVAL=missing, which is fine since it's optional */ |
| 309 | if (ret != -EINVAL) | 309 | if (ret != -EINVAL) |
| 310 | dev_err(dev, "could not parse property function\n"); | 310 | dev_err(dev, "%s: could not parse property function\n", |
| 311 | of_node_full_name(np)); | ||
| 311 | function = NULL; | 312 | function = NULL; |
| 312 | } | 313 | } |
| 313 | 314 | ||
| 314 | ret = pinconf_generic_parse_dt_config(np, pctldev, &configs, | 315 | ret = pinconf_generic_parse_dt_config(np, pctldev, &configs, |
| 315 | &num_configs); | 316 | &num_configs); |
| 316 | if (ret < 0) { | 317 | if (ret < 0) { |
| 317 | dev_err(dev, "could not parse node property\n"); | 318 | dev_err(dev, "%s: could not parse node property\n", |
| 319 | of_node_full_name(np)); | ||
| 318 | return ret; | 320 | return ret; |
| 319 | } | 321 | } |
| 320 | 322 | ||
