From: Jagadeesh Bhaskar Pakaravoor Date: Tue, 30 Sep 2008 18:42:46 +0000 (+0300) Subject: twl4030-gpio: Remove default pullup enable/disable of GPIO X-Git-Tag: v2.6.27-omap1~124 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=23ec98b680ec53b03de8e7dfac5eb90671344ae4;p=linux-2.6-omap-h63xx.git 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: David Brownell Signed-off-by: Girish S G Signed-off-by: Jagadeesh Bhaskar Pakaravoor Signed-off-by: Felipe Balbi Signed-off-by: Tony Lindgren --- diff --git a/drivers/i2c/chips/twl4030-gpio.c b/drivers/i2c/chips/twl4030-gpio.c index 4d89abcc5ea..b51bed0c995 100644 --- a/drivers/i2c/chips/twl4030-gpio.c +++ b/drivers/i2c/chips/twl4030-gpio.c @@ -301,7 +301,6 @@ int twl4030_request_gpio(int gpio) 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 = @@ -311,10 +310,6 @@ int twl4030_request_gpio(int gpio) } if (!ret) gpio_usage_count |= (0x1 << gpio); - - ret = - twl4030_i2c_write(TWL4030_MODULE_GPIO, clear_pull, - REG_GPIOPUPDCTR1, 5); } up(&gpio_sem); return ret;