Skip to contentSkip to conversation

vmmouse: Fix initialization

PATCH Applied Jan Kiszka 2 participants 2 messages Mar 21, 2011 – Mar 22, 2011

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 vmmouse: Fix initialization

Latest refactorings left vmmouse nonfunctional behind. Fix it by adding the required device initialization.

---
 hw/pc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
hw/pc.c +1 -0
index 4d67d9f..6939c04 100644
@@ -1142,6 +1142,7 @@ void pc_basic_device_init(qemu_irq *isa_irq,
     vmmouse = isa_try_create("vmmouse");
     if (vmmouse) {
         qdev_prop_set_ptr(&vmmouse->qdev, "ps2_mouse", i8042);
+        qdev_init_nofail(&vmmouse->qdev);
     }
     port92 = isa_create_simple("port92");
     port92_init(port92, &a20_line[1]);
Signature · 1 line
1.7.1
#1 lore raw
Quoted 7 lines · Jan Kiszka

Latest refactorings left vmmouse nonfunctional behind. Fix it by adding the required device initialization.

---
 hw/pc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Thanks, applied.

Quoted 16 lines
hw/pc.c +1 -0
index 4d67d9f..6939c04 100644
@@ -1142,6 +1142,7 @@ void pc_basic_device_init(qemu_irq *isa_irq,
     vmmouse = isa_try_create("vmmouse");
     if (vmmouse) {
         qdev_prop_set_ptr(&vmmouse->qdev, "ps2_mouse", i8042);
+        qdev_init_nofail(&vmmouse->qdev);
     }
     port92 = isa_create_simple("port92");
     port92_init(port92, &a20_line[1]);
Signature · 1 line
1.7.1
Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net