Skip to contentSkip to conversation

imx: Return gpio_set_value in gpio_direction_output

PATCH New Vikram Narayanan 1 participant 1 message Apr 4, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 imx: Return gpio_set_value in gpio_direction_output

imx: Return gpio_set_value in gpio_direction_output

---
 drivers/gpio/mxc_gpio.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

100.0% drivers/gpio/

drivers/gpio/mxc_gpio.c +1 -2
index c4ef001..147c2c9 100644
@@ -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);
 }
Signature · 1 line
1.7.4.1