summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-01-18 15:37:35 +0100
committerGrant Likely <grant.likely@secretlab.ca>2012-01-18 21:48:43 +0100
commit94bd2442d25454a874e070d871f50f4ce9d57101 (patch)
treeff71c15e4aa0c0f89efc01adc63ef49c4446d1e5 /drivers/gpio
parentgpio/it8761e: Restrict it8761e gpio driver to x86. (diff)
downloadlinux-94bd2442d25454a874e070d871f50f4ce9d57101.tar.xz
linux-94bd2442d25454a874e070d871f50f4ce9d57101.zip
gpio: tps65910: Use correct offset for gpio initialization
Using the correct gpio offset for setting the initial value of gpio when setting output direction. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-tps65910.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-tps65910.c b/drivers/gpio/gpio-tps65910.c
index b9c1c297669e..91f45b965d1e 100644
--- a/drivers/gpio/gpio-tps65910.c
+++ b/drivers/gpio/gpio-tps65910.c
@@ -52,7 +52,7 @@ static int tps65910_gpio_output(struct gpio_chip *gc, unsigned offset,
struct tps65910 *tps65910 = container_of(gc, struct tps65910, gpio);
/* Set the initial value */
- tps65910_gpio_set(gc, 0, value);
+ tps65910_gpio_set(gc, offset, value);
return tps65910_set_bits(tps65910, TPS65910_GPIO0 + offset,
GPIO_CFG_MASK);