]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit86b8359044afac2fdbe4aa3fc36f423b104b9d2a
tree3cb2744c809158f9db7c8abae397c0069c8cf359
parentacc3766daf3bb24820aabd412c2bc3dd6f2d00b1
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]