Patchwork [U-Boot,3/3] imx: Return gpio_set_value in gpio_direction_output

login
register
mail settings
Submitter Vikram Narayanan
Date April 4, 2012, 4:07 p.m.
Message ID <4F7C71AD.50900@gmail.com>
Download mbox | patch
Permalink /patch/150768/
State Accepted
Commit d71c9c9fc09babfdbcbf672ada763c97772839fc
Delegated to: Stefano Babic
Headers show

Comments

Vikram Narayanan - April 4, 2012, 4:07 p.m.
imx: Return gpio_set_value in gpio_direction_output

Signed-off-by: Vikram Narayanan <vikram186@gmail.com>
---
 drivers/gpio/mxc_gpio.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
 100.0% drivers/gpio/

Patch

diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c
index c4ef001..147c2c9 100644
--- a/drivers/gpio/mxc_gpio.c
+++ b/drivers/gpio/mxc_gpio.c
@@ -144,6 +144,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);
 }