diff options
author | Tushar Behera <tushar.b@samsung.com> | 2014-07-04 05:52:09 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-07-09 06:22:58 -0400 |
commit | 85ea29ac1c4838a720e6fcde2805ddb33451f21b (patch) | |
tree | ff4e587f16e3674755302aa7e79e6bd0eb63006b | |
parent | 122c94dec7f6909ff6999f6207b124e6db5d2ba8 (diff) |
gpiolib: of: Update debug messages for of_get_named_gpiod_flags
Following is the debug output (only a few examples) before and after
the patch.
$ dmesg | grep of_get_named_gpiod_flags
Before:
of_get_named_gpiod_flags: can't parse gpios property
of node '/mmc@12220000[0]'
of_get_named_gpiod_flags exited with status 0
After:
of_get_named_gpiod_flags: can't parse 'wp-gpios' property
of node '/mmc@12220000[0]'
of_get_named_gpiod_flags: parsed 'gpios' property of node
'/gpio-keys/power[0]' - status (0)
Signed-off-by: Tushar Behera <tushar.b@samsung.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/gpio/gpiolib-of.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index af7e25c9a9ae..e60cdab1d15e 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c | |||
@@ -82,15 +82,16 @@ struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np, | |||
82 | ret = of_parse_phandle_with_args(np, propname, "#gpio-cells", index, | 82 | ret = of_parse_phandle_with_args(np, propname, "#gpio-cells", index, |
83 | &gg_data.gpiospec); | 83 | &gg_data.gpiospec); |
84 | if (ret) { | 84 | if (ret) { |
85 | pr_debug("%s: can't parse gpios property of node '%s[%d]'\n", | 85 | pr_debug("%s: can't parse '%s' property of node '%s[%d]'\n", |
86 | __func__, np->full_name, index); | 86 | __func__, propname, np->full_name, index); |
87 | return ERR_PTR(ret); | 87 | return ERR_PTR(ret); |
88 | } | 88 | } |
89 | 89 | ||
90 | gpiochip_find(&gg_data, of_gpiochip_find_and_xlate); | 90 | gpiochip_find(&gg_data, of_gpiochip_find_and_xlate); |
91 | 91 | ||
92 | of_node_put(gg_data.gpiospec.np); | 92 | of_node_put(gg_data.gpiospec.np); |
93 | pr_debug("%s exited with status %d\n", __func__, | 93 | pr_debug("%s: parsed '%s' property of node '%s[%d]' - status (%d)\n", |
94 | __func__, propname, np->full_name, index, | ||
94 | PTR_ERR_OR_ZERO(gg_data.out_gpio)); | 95 | PTR_ERR_OR_ZERO(gg_data.out_gpio)); |
95 | return gg_data.out_gpio; | 96 | return gg_data.out_gpio; |
96 | } | 97 | } |