ARM: 7899/1: sa1100: h3600: refactor LCD GPIO handling
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Tue, 26 Nov 2013 10:09:49 +0000 (11:09 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 12 Dec 2013 23:00:54 +0000 (23:00 +0000)
commit8bed576c1a81d620765ec96f7b4e80dedaef1bcf
tree7d55d1d3c1cde016e5d4fea88d611c6cb9483f7e
parent5f72d85e282e83db8eedb291aa89db9198470b38
ARM: 7899/1: sa1100: h3600: refactor LCD GPIO handling

Use gpio_request_array to request all GPIOs at once. Also don't call
gpio_free. There is little point freeing LCD gpios once they are
requested. Instead guard them with bool variable.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-sa1100/h3600.c