[ARM] dns323-setup.c: fix WARN() when booting
authorArnaud Patard <arnaud.patard@rtp-net.org>
Sat, 3 Apr 2010 08:31:33 +0000 (10:31 +0200)
committerNicolas Pitre <nico@fluxnic.net>
Mon, 3 May 2010 20:34:47 +0000 (16:34 -0400)
commit5ccc8dab611fcd1d0961b73e22d6c2d108967862
tree32bce8e01437bcbb78d63b68864de90ace3d65db
parentd8f089d2ad35861c432618900fa08ca70c168d76
[ARM] dns323-setup.c: fix WARN() when booting

Since commit b2a731aa5cbca7e0252da75e16de7ae5feb1313a, dns323_init() is
setting the power led gpio direction with gpio_direction_output() but
doesn't request the gpio before (which is not permitted by the gpio
layer afaik). This behaviour is triggering a WARN() at boot time.

Tested-by: Christian Samsel <csamsel@gmxpro.de>
Cc: Martin Michlmayr <tbm@cyrius.com>
Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
    [ Part 2: "Attached Text" ]
arch/arm/mach-orion5x/dns323-setup.c