From 6753a04ec1a18005633d342cf3b714e0ed45f5e1 Mon Sep 17 00:00:00 2001 From: "don.hong" Date: Fri, 6 Apr 2012 18:01:27 +0900 Subject: [PATCH] [Title] Fixed not to register usb keyboard handler when initializing ps2 keyboard [Type] BugFix [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- hw/ps2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/ps2.c b/hw/ps2.c index ba02a11..beb2292 100644 --- a/hw/ps2.c +++ b/hw/ps2.c @@ -652,9 +652,10 @@ void *ps2_kbd_init(void (*update_irq)(void *, int), void *update_arg) s->common.update_arg = update_arg; s->scancode_set = 2; vmstate_register(NULL, 0, &vmstate_ps2_keyboard, s); - qemu_add_kbd_event_handler(ps2_put_keycode, s); #ifdef CONFIG_MARU qemu_add_ps2kbd_event_handler(ps2_put_keycode, s); +#else + qemu_add_kbd_event_handler(ps2_put_keycode, s); #endif qemu_register_reset(ps2_kbd_reset, s); return s; -- 2.7.4