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: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Girish S G <girishsg@ti.com>
Signed-off-by: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
        if (gpio_usage_count & (0x1 << gpio))
                ret = -EBUSY;
        else {
-               u8 clear_pull[6] = { 0, 0, 0, 0, 0, 0 };
                /* First time usage? - switch on GPIO module */
                if (!gpio_usage_count) {
                        ret =
                }
                if (!ret)
                        gpio_usage_count |= (0x1 << gpio);
-
-               ret =
-               twl4030_i2c_write(TWL4030_MODULE_GPIO, clear_pull,
-                               REG_GPIOPUPDCTR1, 5);
        }
        up(&gpio_sem);
        return ret;