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:
d895821
)
gpio: omap: Pass correct argument to _get_gpio_direction()
author
Axel Lin
<axel.lin@ingics.com>
Sat, 31 Jan 2015 14:23:38 +0000
(22:23 +0800)
committer
Simon Glass
<sjg@chromium.org>
Thu, 12 Feb 2015 17:35:29 +0000
(10:35 -0700)
Pass bank rather than bank->base to _get_gpio_direction().
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/gpio/omap_gpio.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/omap_gpio.c
b/drivers/gpio/omap_gpio.c
index f3a7ccb51e98f28ee1b9dd72906dac4b93e0c407..19fc451079989781e5192cdea28706e4dc4dafaa 100644
(file)
--- a/
drivers/gpio/omap_gpio.c
+++ b/
drivers/gpio/omap_gpio.c
@@
-291,7
+291,7
@@
static int omap_gpio_get_function(struct udevice *dev, unsigned offset)
struct gpio_bank *bank = dev_get_priv(dev);
/* GPIOF_FUNC is not implemented yet */
- if (_get_gpio_direction(bank
->base
, offset) == OMAP_GPIO_DIR_OUT)
+ if (_get_gpio_direction(bank, offset) == OMAP_GPIO_DIR_OUT)
return GPIOF_OUTPUT;
else
return GPIOF_INPUT;