greybus: arche-platform: propagate errors returned by gpiolib
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 11 Jan 2016 05:59:07 +0000 (11:29 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 11 Jan 2016 23:58:01 +0000 (15:58 -0800)
commitf1f251b59b6db97c42d7d746727072cb37604494
tree0dd0a8862925700cb70a5edd5767f795834a501b
parent140741ec6384435b1a0f89042a2a6dac8e2eebd2
greybus: arche-platform: propagate errors returned by gpiolib

Propagate errors returned by of_get_named_gpio() instead of sending
-ENODEV.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/arche-platform.c