GPIO: OMAP: add locking around calls to _set_gpio_triggering
authorColin Cross <ccross@android.com>
Mon, 6 Jun 2011 20:38:18 +0000 (13:38 -0700)
committerKevin Hilman <khilman@ti.com>
Mon, 6 Jun 2011 23:12:34 +0000 (16:12 -0700)
_set_gpio_triggering uses read-modify-write on bank registers,
lock bank->lock around all calls to it to prevent register
corruption if two cpus access gpios in the same bank at the
same time.

Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>

No differences found