summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/variants/s6000/gpio.c
diff options
context:
space:
mode:
authorJohannes Weiner <jw@emlix.com>2009-05-11 15:43:34 +0200
committerChris Zankel <chris@zankel.net>2009-05-11 22:00:07 -0700
commit1fb137c1e33cd188b40b3c0d7283412efeeb783f (patch)
tree3cb2744c809158f9db7c8abae397c0069c8cf359 /arch/xtensa/variants/s6000/gpio.c
parent586411dcd1935f91796d5e8a29aa3cfdf01a01f4 (diff)
downloadop-kernel-dev-1fb137c1e33cd188b40b3c0d7283412efeeb783f.zip
op-kernel-dev-1fb137c1e33cd188b40b3c0d7283412efeeb783f.tar.gz
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>
Diffstat (limited to 'arch/xtensa/variants/s6000/gpio.c')
-rw-r--r--arch/xtensa/variants/s6000/gpio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/xtensa/variants/s6000/gpio.c b/arch/xtensa/variants/s6000/gpio.c
index 33a8d95..79317fd 100644
--- a/arch/xtensa/variants/s6000/gpio.c
+++ b/arch/xtensa/variants/s6000/gpio.c
@@ -64,8 +64,7 @@ static struct gpio_chip gpiochip = {
.exported = 0, /* no exporting to userspace */
};
-static int gpio_init(void)
+int s6_gpio_init(void)
{
return gpiochip_add(&gpiochip);
}
-device_initcall(gpio_init);
OpenPOWER on IntegriCloud