ARM: 6154/1: nomadik-gpio: refactor nmk_gpio_set_mode
authorRabin Vincent <rabin.vincent@stericsson.com>
Wed, 2 Jun 2010 04:50:28 +0000 (05:50 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 16 Jun 2010 21:27:35 +0000 (22:27 +0100)
commit6f9a974cf6fdd189ff383c8b75c22c65dab20b52
treeec1e142b40646a1fced854f11044eac9ccf82c20
parent81a3c2989227e025b715e18299431395083b39e5
ARM: 6154/1: nomadik-gpio: refactor nmk_gpio_set_mode

Extract out a portion of nmk_gpio_set_mode() that can be called with the
lock already held.  This will be used from the pincfg API.

Cc: Alessandro Rubini <rubini@unipv.it>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-nomadik/gpio.c