From: Vikram Narayanan Date: Tue, 10 Apr 2012 04:26:30 +0000 (+0000) Subject: imx: Return gpio_set_value in gpio_direction_output X-Git-Tag: v2012.04-rc2~1^2~7 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=d71c9c9fc09babfdbcbf672ada763c97772839fc 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 --- 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); }