OMAP: GPIO: fix _set_gpio_triggering() for OMAP2+
authorMika Westerberg <ext-mika.1.westerberg@nokia.com>
Wed, 29 Dec 2010 11:01:31 +0000 (13:01 +0200)
committerKevin Hilman <khilman@ti.com>
Fri, 7 Jan 2011 21:33:07 +0000 (13:33 -0800)
commitf7c5cc456211da7d0b0aefd3886e57b313a0e00f
treea1aea5eca5b8e707c5ab94d3d2d0022653565af8
parentdda0aea7ba5a902982cb65a7f7ec1b5c8e7b6923
OMAP: GPIO: fix _set_gpio_triggering() for OMAP2+

In case on OMAP2+ we call set_24xx_gpio_triggering() instead of
updating reg and l values. However, at the end of the function we
perform a write:

__raw_writel(l, reg);

So on OMAP2+ we end up writing 0 to the bank->base which is not
correct (typically this points to GPIO_REVISION register).

Fix this by returning immediately after call to
set_24xx_gpio_triggering().

Signed-off-by: Mika Westerberg <ext-mika.1.westerberg@nokia.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/plat-omap/gpio.c