gpio: propagate of_parse_phandle_with_args errors
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 29 Jun 2012 04:57:59 +0000 (13:57 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 17 Jul 2012 19:00:15 +0000 (21:00 +0200)
commit41920d16360ebc8c482911078a17d9994fb77612
treefbca621bd7db8de740ffef204da0609dafe04748
parentf447ed8b31da7b24c7c75c2d4624598135b41217
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>
drivers/gpio/gpiolib-of.c