summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib-of.c
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2012-06-29 13:57:59 +0900
committerLinus Walleij <linus.walleij@linaro.org>2012-07-17 21:00:15 +0200
commit41920d16360ebc8c482911078a17d9994fb77612 (patch)
treefbca621bd7db8de740ffef204da0609dafe04748 /drivers/gpio/gpiolib-of.c
parentf447ed8b31da7b24c7c75c2d4624598135b41217 (diff)
downloadop-kernel-dev-41920d16360ebc8c482911078a17d9994fb77612.zip
op-kernel-dev-41920d16360ebc8c482911078a17d9994fb77612.tar.gz
gpio: propagate of_parse_phandle_with_args errors
Make of_get_named_gpio_flags propagate any error it receives from of_parse_phandle_with_args instead of inconditionally returning -EINVAL. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib-of.c')
-rw-r--r--drivers/gpio/gpiolib-of.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index 8389d4a..a71aeca 100644
--- a/drivers/gpio/gpiolib-of.c
+++ b/drivers/gpio/gpiolib-of.c
@@ -73,7 +73,7 @@ int of_get_named_gpio_flags(struct device_node *np, const char *propname,
&gg_data.gpiospec);
if (ret) {
pr_debug("%s: can't parse gpios property\n", __func__);
- return -EINVAL;
+ return ret;
}
gpiochip_find(&gg_data, of_gpiochip_find_and_xlate);
OpenPOWER on IntegriCloud