Skip to content

Commit

Permalink
gpio: propagate of_parse_phandle_with_args errors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexandre Courbot authored and Linus Walleij committed Jul 17, 2012
1 parent f447ed8 commit 41920d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpiolib-of.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 41920d1

Please sign in to comment.