Input: amikbd - fix build if !CONFIG_HW_CONSOLE
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 3 Dec 2014 22:52:58 +0000 (14:52 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 3 Dec 2014 23:28:27 +0000 (15:28 -0800)
commit545e625325c5850a506b116788e6045aac69cc36
tree27e5996529a7b3e19fe7dc6ee3a0fff5b5b55b7a
parent3b5005e9206af245033e9209eee193f3d7b2f636
Input: amikbd - fix build if !CONFIG_HW_CONSOLE

If CONFIG_HW_CONSOLE is not set:

drivers/built-in.o: In function `amikbd_probe':
amikbd.c:(.init.text+0x3e4e): undefined reference to `key_maps'
amikbd.c:(.init.text+0x3dd4): undefined reference to `key_maps'

To fix this, extract the initialization of the console keyboard maps
into amikbd_init_console_keymaps(), protected by #ifdef
CONFIG_HW_CONSOLE.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/amikbd.c