]> git.sur5r.net Git - u-boot/commitdiff
imx: Return gpio_set_value in gpio_direction_output
authorVikram Narayanan <vikram186@gmail.com>
Tue, 10 Apr 2012 04:26:30 +0000 (04:26 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 16 Apr 2012 12:53:59 +0000 (14:53 +0200)
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 <vikram186@gmail.com>
Acked-by: Stefano Babic <sbabic@denx.de>
drivers/gpio/mxc_gpio.c

index 21b1cdc08bc7697537cd210dea81821dd4ef75b7..f1b1c16b1b9356409f57b2295742cb91d8f24022 100644 (file)
@@ -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);
 }