aboutsummaryrefslogtreecommitdiff
path: root/hw/input/stellaris_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/input/stellaris_input.c')
-rw-r--r--hw/input/stellaris_input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/input/stellaris_input.c b/hw/input/stellaris_input.c
index 59892b0..e6ee5e1 100644
--- a/hw/input/stellaris_input.c
+++ b/hw/input/stellaris_input.c
@@ -88,5 +88,6 @@ void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode)
}
s->num_buttons = n;
qemu_add_kbd_event_handler(stellaris_gamepad_put_key, s);
- vmstate_register(NULL, -1, &vmstate_stellaris_gamepad, s);
+ vmstate_register(NULL, VMSTATE_INSTANCE_ID_ANY,
+ &vmstate_stellaris_gamepad, s);
}