diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-01-31 22:23:38 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-02-12 10:35:29 -0700 |
commit | 26c0472cb07bc23e21fc8148565f7f2be746a8a0 (patch) | |
tree | 39ca9485ab907388e0f1c1c39948e381ac7502dc /drivers | |
parent | d895821f4c3c21f034780814cb73842b7219c4f2 (diff) | |
download | u-boot-imx-26c0472cb07bc23e21fc8148565f7f2be746a8a0.zip u-boot-imx-26c0472cb07bc23e21fc8148565f7f2be746a8a0.tar.gz u-boot-imx-26c0472cb07bc23e21fc8148565f7f2be746a8a0.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/omap_gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/omap_gpio.c b/drivers/gpio/omap_gpio.c index f3a7ccb..19fc451 100644 --- 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; |