From d71c9c9fc09babfdbcbf672ada763c97772839fc Mon Sep 17 00:00:00 2001 From: Vikram Narayanan Date: Tue, 10 Apr 2012 04:26:30 +0000 Subject: [PATCH] imx: Return gpio_set_value in gpio_direction_output Return gpio_set_value in gpio_direction_output. Earlier it returned 0 and ignored gpio_set_value's return value. Signed-off-by: Vikram Narayanan Acked-by: Stefano Babic --- drivers/gpio/mxc_gpio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index 21b1cdc08b..f1b1c16b1b 100644 --- a/drivers/gpio/mxc_gpio.c +++ b/drivers/gpio/mxc_gpio.c @@ -145,6 +145,5 @@ int gpio_direction_output(unsigned gpio, int value) if (ret < 0) return ret; - gpio_set_value(gpio, value); - return 0; + return gpio_set_value(gpio, value); } -- 2.39.5