Skip to content

Commit 4024efb

Browse files
baruchsiachlinusw
authored andcommitted
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>
1 parent c728950 commit 4024efb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/pinctrl/pinconf-generic.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,14 +307,16 @@ int pinconf_generic_dt_subnode_to_map(struct pinctrl_dev *pctldev,
307307
if (ret < 0) {
308308
/* EINVAL=missing, which is fine since it's optional */
309309
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));
311312
function = NULL;
312313
}
313314

314315
ret = pinconf_generic_parse_dt_config(np, pctldev, &configs,
315316
&num_configs);
316317
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));
318320
return ret;
319321
}
320322

0 commit comments

Comments
 (0)