xtensa: register gpio chip before use
authorJohannes Weiner <jw@emlix.com>
Mon, 11 May 2009 13:43:34 +0000 (15:43 +0200)
committerChris Zankel <chris@zankel.net>
Tue, 12 May 2009 05:00:07 +0000 (22:00 -0700)
commit1fb137c1e33cd188b40b3c0d7283412efeeb783f
tree3cb2744c809158f9db7c8abae397c0069c8cf359
parent586411dcd1935f91796d5e8a29aa3cfdf01a01f4
xtensa: register gpio chip before use

Platform initialization sets up the LED heartbeat that is controlled
via GPIO.  Requesting the GPIO pins fails, however, as the chip is
only initialized later by a device_initcall().

Fix this up by exporting the initialization function.  Let the
platform set up the chip before it starts using it.

Signed-off-by: Johannes Weiner <jw@emlix.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/platforms/s6105/setup.c
arch/xtensa/variants/s6000/gpio.c
arch/xtensa/variants/s6000/include/variant/gpio.h [new file with mode: 0644]