Commit 23ec98b6 authored by Jagadeesh Bhaskar Pakaravoor's avatar Jagadeesh Bhaskar Pakaravoor Committed by Tony Lindgren

twl4030-gpio: Remove default pullup enable/disable of GPIO

One twl4030_request_gpio() should not tamper with the pullup
enabling/disabling of the rest of the GPIOs. So removing the default
pullup values written to REG_GPIOPUPDCTR1.
Acked-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGirish S G <girishsg@ti.com>
Signed-off-by: default avatarJagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 5502757a
...@@ -301,7 +301,6 @@ int twl4030_request_gpio(int gpio) ...@@ -301,7 +301,6 @@ int twl4030_request_gpio(int gpio)
if (gpio_usage_count & (0x1 << gpio)) if (gpio_usage_count & (0x1 << gpio))
ret = -EBUSY; ret = -EBUSY;
else { else {
u8 clear_pull[6] = { 0, 0, 0, 0, 0, 0 };
/* First time usage? - switch on GPIO module */ /* First time usage? - switch on GPIO module */
if (!gpio_usage_count) { if (!gpio_usage_count) {
ret = ret =
...@@ -311,10 +310,6 @@ int twl4030_request_gpio(int gpio) ...@@ -311,10 +310,6 @@ int twl4030_request_gpio(int gpio)
} }
if (!ret) if (!ret)
gpio_usage_count |= (0x1 << gpio); gpio_usage_count |= (0x1 << gpio);
ret =
twl4030_i2c_write(TWL4030_MODULE_GPIO, clear_pull,
REG_GPIOPUPDCTR1, 5);
} }
up(&gpio_sem); up(&gpio_sem);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment