diff options
author | Chris Boot <bootc@bootc.net> | 2006-09-29 04:59:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-29 12:18:06 -0400 |
commit | 58012cd788443b9d144bd7c72260a84b6b30f45d (patch) | |
tree | 22696f3e8201dfb5b5a59544a8f6be335293077e | |
parent | 684f978347deb42d180373ac4c427f82ef963171 (diff) |
[PATCH] scx200_gpio export cleanups
Use EXPORT_SYMBOL_GPL for new symbols, and declare the struct in the header
file for access by other modules.
Signed-off-by: Chris Boot <bootc@bootc.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | drivers/char/scx200_gpio.c | 2 | ||||
-rw-r--r-- | include/linux/scx200_gpio.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/scx200_gpio.c b/drivers/char/scx200_gpio.c index b1f88c66b2b5..99e5272e3c53 100644 --- a/drivers/char/scx200_gpio.c +++ b/drivers/char/scx200_gpio.c | |||
@@ -44,7 +44,7 @@ struct nsc_gpio_ops scx200_gpio_ops = { | |||
44 | .gpio_change = scx200_gpio_change, | 44 | .gpio_change = scx200_gpio_change, |
45 | .gpio_current = scx200_gpio_current | 45 | .gpio_current = scx200_gpio_current |
46 | }; | 46 | }; |
47 | EXPORT_SYMBOL(scx200_gpio_ops); | 47 | EXPORT_SYMBOL_GPL(scx200_gpio_ops); |
48 | 48 | ||
49 | static int scx200_gpio_open(struct inode *inode, struct file *file) | 49 | static int scx200_gpio_open(struct inode *inode, struct file *file) |
50 | { | 50 | { |
diff --git a/include/linux/scx200_gpio.h b/include/linux/scx200_gpio.h index 90dd069cc145..1a82d30c4b17 100644 --- a/include/linux/scx200_gpio.h +++ b/include/linux/scx200_gpio.h | |||
@@ -4,6 +4,7 @@ u32 scx200_gpio_configure(unsigned index, u32 set, u32 clear); | |||
4 | 4 | ||
5 | extern unsigned scx200_gpio_base; | 5 | extern unsigned scx200_gpio_base; |
6 | extern long scx200_gpio_shadow[2]; | 6 | extern long scx200_gpio_shadow[2]; |
7 | extern struct nsc_gpio_ops scx200_gpio_ops; | ||
7 | 8 | ||
8 | #define scx200_gpio_present() (scx200_gpio_base!=0) | 9 | #define scx200_gpio_present() (scx200_gpio_base!=0) |
9 | 10 | ||