[patch 1/3] m68k: export atari_keyb_init

Geert Uytterhoeven
2007-11-18T10:13:18Z

[-- Attachment #1: atari-export-atari_keyb_init.diff --]
[-- Type: text/plain, Size: 1328 bytes --]

From: Adrian Bunk <bunk@kernel.org>

m68k: export atari_keyb_init

This patch fixes the following build error:

<-- snip -->

..
MODPOST 25 modules
ERROR: "atari_keyb_init" [drivers/input/mouse/atarimouse.ko] undefined!
ERROR: "atari_keyb_init" [drivers/input/keyboard/atakbd.ko] undefined!
make[2]: *** [__modpost] Error 1

<-- snip -->

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
arch/m68k/atari/atakeyb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

--- a/arch/m68k/atari/atakeyb.c
+++ b/arch/m68k/atari/atakeyb.c
@@ -565,7 +565,7 @@ void atari_kbd_leds(unsigned int leds)

static int atari_keyb_done = 0;

-int __init atari_keyb_init(void)
+int atari_keyb_init(void)
{
if (atari_keyb_done)
return 0;
@@ -631,6 +631,7 @@ int __init atari_keyb_init(void)
atari_keyb_done = 1;
return 0;
}
+EXPORT_SYMBOL_GPL(atari_keyb_init);

int atari_kbd_translate(unsigned char keycode, unsigned char *keycodep, char raw_mode)
{