ARM: 6147/1: nomadik-gpio: set val in ->direction_output()
authorRabin Vincent <rabin.vincent@stericsson.com>
Thu, 27 May 2010 11:22:42 +0000 (12:22 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 16 Jun 2010 21:26:09 +0000 (22:26 +0100)
commit6647c6c0b62ae14ca994c5776ddb084820bea808
tree6ab6cf9f4b3abffda83eb304e9353e466fbe8aef
parent5c0c1f08abf094273f40a6d6fd4519fcacc6c58d
ARM: 6147/1: nomadik-gpio: set val in ->direction_output()

The ->direction_output() callback needs to set the value it was passed,
in addition to setting the direction as output.  On this peripheral, we
can't set the value before setting the direction, so set it after.

Acked-by: 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