powerpc/qe_lib: Set gpio data before changing the direction to output
authorMichael Barkowski <michaelbarkowski@ruggedcom.com>
Tue, 18 Aug 2009 21:20:44 +0000 (17:20 -0400)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 26 Aug 2009 02:08:45 +0000 (21:08 -0500)
commit1dcd8ffc81e80a170625883f63f6a5db3cd0428d
tree8e8f1a34d271a43408745e5eacf868307e85859b
parent9b9d401b8d11796f4c4bcbcabecfec9f5d85ea25
powerpc/qe_lib: Set gpio data before changing the direction to output

This avoids having a short glitch if the desired initial value is not
the same as what was previously in the data register.

Signed-off-by: Michael Barkowski <michaelbarkowski@ruggedcom.com>
Acked-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/qe_lib/gpio.c