summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorLothar Waßmann <LW@KARO-electronics.de>2013-07-31 14:12:54 (GMT)
committerLinus Walleij <linus.walleij@linaro.org>2013-08-16 13:26:31 (GMT)
commiteddf8176b57ddb8f960b188eb8796b9d13e4efc0 (patch)
treed42cbc3e56402c34a90c75a8e21a7956623d82b4 /drivers/gpio
parente56aee1897fd27631c1cb28e12b0fb8f8f9736f7 (diff)
downloadlinux-fsl-qoriq-eddf8176b57ddb8f960b188eb8796b9d13e4efc0.tar.xz
gpio: gpiolib-of.c: make error message more meaningful by adding the node name and index
Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib-of.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index 665f953..ba9876f 100644
--- a/drivers/gpio/gpiolib-of.c
+++ b/drivers/gpio/gpiolib-of.c
@@ -76,7 +76,8 @@ int of_get_named_gpio_flags(struct device_node *np, const char *propname,
ret = of_parse_phandle_with_args(np, propname, "#gpio-cells", index,
&gg_data.gpiospec);
if (ret) {
- pr_debug("%s: can't parse gpios property\n", __func__);
+ pr_debug("%s: can't parse gpios property of node '%s[%d]'\n",
+ __func__, np->full_name, index);
return ret;
}