projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d2b0a8
)
kw_gpio: fix error in kw_gpio_direction_input
author
Holger Brunck
<holger.brunck@keymile.com>
Sun, 21 Aug 2011 23:21:06 +0000
(23:21 +0000)
committer
Wolfgang Denk
<wd@denx.de>
Mon, 17 Oct 2011 20:25:33 +0000
(22:25 +0200)
The function kw_gpio_is_valid returns zero on success, so
adapt the error check accordingly.
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
cc: Dieter Kiermaier <dk-arm-linux@gmx.de>
drivers/gpio/kw_gpio.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/kw_gpio.c
b/drivers/gpio/kw_gpio.c
index 56383c2875aead5630e4cb123fb9c0cb769905d1..2de179e827afcd55a2eeeffa8fd664177dfb9bc4 100644
(file)
--- a/
drivers/gpio/kw_gpio.c
+++ b/
drivers/gpio/kw_gpio.c
@@
-109,7
+109,7
@@
void kw_gpio_set_valid(unsigned pin, int mode)
*/
int kw_gpio_direction_input(unsigned pin)
{
- if (
!kw_gpio_is_valid(pin, GPIO_INPUT_OK)
)
+ if (
kw_gpio_is_valid(pin, GPIO_INPUT_OK) != 0
)
return 1;
/* Configure GPIO direction. */