aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/variants/s6000/include/variant/gpio.h
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/include/variant/gpio.h
parentxtensa: always use correct stack pointer for stack traces (diff)
downloadlinux-dev-1fb137c1e33cd188b40b3c0d7283412efeeb783f.tar.xz
linux-dev-1fb137c1e33cd188b40b3c0d7283412efeeb783f.zip
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 '')
-rw-r--r--arch/xtensa/variants/s6000/include/variant/gpio.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/xtensa/variants/s6000/include/variant/gpio.h b/arch/xtensa/variants/s6000/include/variant/gpio.h
new file mode 100644
index 000000000000..8327f62167eb
--- /dev/null
+++ b/arch/xtensa/variants/s6000/include/variant/gpio.h
@@ -0,0 +1,6 @@
+#ifndef _XTENSA_VARIANT_S6000_GPIO_H
+#define _XTENSA_VARIANT_S6000_GPIO_H
+
+extern int s6_gpio_init(void);
+
+#endif /* _XTENSA_VARIANT_S6000_GPIO_H */