aboutsummaryrefslogtreecommitdiffstats
path: root/xenolinux-2.4.21-pre4-sparse/drivers/char/tty_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'xenolinux-2.4.21-pre4-sparse/drivers/char/tty_io.c')
-rw-r--r--xenolinux-2.4.21-pre4-sparse/drivers/char/tty_io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xenolinux-2.4.21-pre4-sparse/drivers/char/tty_io.c b/xenolinux-2.4.21-pre4-sparse/drivers/char/tty_io.c
index de339ba297..8f7e08bc94 100644
--- a/xenolinux-2.4.21-pre4-sparse/drivers/char/tty_io.c
+++ b/xenolinux-2.4.21-pre4-sparse/drivers/char/tty_io.c
@@ -2358,6 +2358,11 @@ void __init tty_init(void)
panic("Couldn't register /dev/tty0 driver\n");
kbd_init();
+#else
+ // the below is a dodgy hack to allow keyboard/mouse support without the console support, along with the file "dummy_console.c"
+#ifdef CONFIG_DUMMY_CONSOLE
+ kbd_init();
+#endif
#endif
#ifdef CONFIG_ESPSERIAL /* init ESP before rs, so rs doesn't see the port */