diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-09 14:20:50 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-08-15 22:12:59 +0200 |
commit | 01312513c4a48bdd4dbbea07716bd2dcd5d11c87 (patch) | |
tree | 23d63ed819243e39ffcae861876dd45a6a6078d6 /drivers/pinctrl/pinctrl-imx.c | |
parent | 690ebabb0b081bd25d26935842ac3213f869735a (diff) | |
download | blackbird-op-linux-01312513c4a48bdd4dbbea07716bd2dcd5d11c87.tar.gz blackbird-op-linux-01312513c4a48bdd4dbbea07716bd2dcd5d11c87.zip |
pinctrl: imx: make error messages more informative
When printing error messages about errors in the devicetree also print
the offending node to give the use a hint what might be wrong.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-imx.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-imx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-imx.c b/drivers/pinctrl/pinctrl-imx.c index df80ab6d16b9..f1be17f6fcf1 100644 --- a/drivers/pinctrl/pinctrl-imx.c +++ b/drivers/pinctrl/pinctrl-imx.c @@ -458,7 +458,7 @@ static int imx_pinctrl_parse_groups(struct device_node *np, list = of_get_property(np, "fsl,pins", &size); /* we do not check return since it's safe node passed down */ if (!size || size % pin_size) { - dev_err(info->dev, "Invalid fsl,pins property\n"); + dev_err(info->dev, "Invalid fsl,pins property in node %s\n", np->full_name); return -EINVAL; } @@ -526,7 +526,7 @@ static int imx_pinctrl_parse_functions(struct device_node *np, func->name = np->name; func->num_groups = of_get_child_count(np); if (func->num_groups <= 0) { - dev_err(info->dev, "no groups defined\n"); + dev_err(info->dev, "no groups defined in %s\n", np->full_name); return -EINVAL; } func->groups = devm_kzalloc(info->dev, |