diff options
author | Vikram Narayanan <vikram186@gmail.com> | 2012-04-10 04:26:30 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-04-16 14:53:59 +0200 |
commit | d71c9c9fc09babfdbcbf672ada763c97772839fc (patch) | |
tree | 10acc2afa1a11e90ce6c396e06f5fa4a0771c966 /drivers/gpio | |
parent | be282554627edbffea7d313242466b5f95dfda5a (diff) | |
download | u-boot-imx-d71c9c9fc09babfdbcbf672ada763c97772839fc.zip u-boot-imx-d71c9c9fc09babfdbcbf672ada763c97772839fc.tar.gz u-boot-imx-d71c9c9fc09babfdbcbf672ada763c97772839fc.tar.bz2 |
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 <vikram186@gmail.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/mxc_gpio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index 21b1cdc..f1b1c16 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); } |