summary refs log tree commit diff stats
path: root/hw/input/adb-kbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/input/adb-kbd.c')
-rw-r--r--hw/input/adb-kbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/input/adb-kbd.c b/hw/input/adb-kbd.c
index 758fa6d267..3649d03ef2 100644
--- a/hw/input/adb-kbd.c
+++ b/hw/input/adb-kbd.c
@@ -387,7 +387,7 @@ static void adb_kbd_class_init(ObjectClass *oc, void *data)
 
     adc->devreq = adb_kbd_request;
     adc->devhasdata = adb_kbd_has_data;
-    dc->reset = adb_kbd_reset;
+    device_class_set_legacy_reset(dc, adb_kbd_reset);
     dc->vmsd = &vmstate_adb_kbd;
 }