mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
gpio: omap: Pass correct argument to _get_gpio_direction()
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>
This commit is contained in:
parent
d895821f4c
commit
26c0472cb0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue