summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-08-22 15:58:58 -0600
committerSimon Glass <sjg@chromium.org>2015-08-26 07:54:15 -0700
commite7cc0b6f006e547e86b111187d192ea8211c7576 (patch)
treeba09479686d65bcc4c1090d6251868f6a06ddb9e /drivers
parent86645c893297e67ae3472a89f4e10e8d57c82975 (diff)
downloadu-boot-imx-e7cc0b6f006e547e86b111187d192ea8211c7576.zip
u-boot-imx-e7cc0b6f006e547e86b111187d192ea8211c7576.tar.gz
u-boot-imx-e7cc0b6f006e547e86b111187d192ea8211c7576.tar.bz2
x86: gpio: Correct calls to _ich6_gpio_set_direction()
These calls seem to be incorrect. The function expects an I/O address but the existing callers pass the value at an I/O address. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/intel_ich6_gpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/intel_ich6_gpio.c b/drivers/gpio/intel_ich6_gpio.c
index cb408a4..fd1f287 100644
--- a/drivers/gpio/intel_ich6_gpio.c
+++ b/drivers/gpio/intel_ich6_gpio.c
@@ -410,7 +410,7 @@ static int ich6_gpio_direction_input(struct udevice *dev, unsigned offset)
{
struct ich6_bank_priv *bank = dev_get_priv(dev);
- return _ich6_gpio_set_direction(inl(bank->io_sel), offset, 0);
+ return _ich6_gpio_set_direction(bank->io_sel, offset, 0);
}
static int ich6_gpio_direction_output(struct udevice *dev, unsigned offset,
@@ -419,7 +419,7 @@ static int ich6_gpio_direction_output(struct udevice *dev, unsigned offset,
int ret;
struct ich6_bank_priv *bank = dev_get_priv(dev);
- ret = _ich6_gpio_set_direction(inl(bank->io_sel), offset, 1);
+ ret = _ich6_gpio_set_direction(bank->io_sel, offset, 1);
if (ret)
return ret;