projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be28255
)
imx: Return gpio_set_value in gpio_direction_output
author
Vikram Narayanan
<vikram186@gmail.com>
Tue, 10 Apr 2012 04:26:30 +0000
(
04:26
+0000)
committer
Albert 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
patch
|
blob
|
history
diff --git
a/drivers/gpio/mxc_gpio.c
b/drivers/gpio/mxc_gpio.c
index 21b1cdc08bc7697537cd210dea81821dd4ef75b7..f1b1c16b1b9356409f57b2295742cb91d8f24022 100644
(file)
--- 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);
}