Skip to content
Snippets Groups Projects
Commit 26c0472c authored by Axel Lin's avatar Axel Lin Committed by Simon Glass
Browse files

gpio: omap: Pass correct argument to _get_gpio_direction()


Pass bank rather than bank->base to _get_gpio_direction().

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent d895821f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment