diff options
Diffstat (limited to 'hw/input/goldfish_events.c')
-rw-r--r-- | hw/input/goldfish_events.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/input/goldfish_events.c b/hw/input/goldfish_events.c index 8a6f5aa7f..3fee6761a 100644 --- a/hw/input/goldfish_events.c +++ b/hw/input/goldfish_events.c @@ -535,6 +535,11 @@ static void gf_evdev_realize(DeviceState *dev, Error **errp) { GoldfishEvDevState *s = GOLDFISHEVDEV(dev); + /* Initialize the device ID so the event dev can be looked up duringi + * monitor commands. + */ + dev->id = strdup(TYPE_GOLDFISHEVDEV); + /* now set the events capability bits depending on hardware configuration */ /* apparently, the EV_SYN array is used to indicate which other * event classes to consider. |