]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita4d5407d00798966e5263d2fb53c7cba871e7f49
tree27e5996529a7b3e19fe7dc6ee3a0fff5b5b55b7a
parent59d4d9f1520f5e9534be6c14447913ab89e99c63
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