Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx> --- arch/arm/boards/animeo_ip/init.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/arch/arm/boards/animeo_ip/init.c b/arch/arm/boards/animeo_ip/init.c index ada3bb0..a5062f1 100644 --- a/arch/arm/boards/animeo_ip/init.c +++ b/arch/arm/boards/animeo_ip/init.c @@ -33,20 +33,9 @@ static int animeo_ip_get_pio_revision(int gpio, char *name) { int ret; - ret = gpio_request(gpio, name); - if (ret) { - pr_err("animeo_ip: can not request gpio %d as %s (%d)\n", - gpio, name, ret); + ret = gpio_request_input(gpio, name); + if (ret) return ret; - } - - ret = gpio_direction_input(gpio); - - if (ret) { - pr_err("animeo_ip: can configure gpio %d (%s) as input (%d)\n", - gpio, name, ret); - return ret; - } return gpio_get_value(gpio); } -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox