summary refs log tree commit diff stats
path: root/hw/max7310.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/max7310.c')
-rw-r--r--hw/max7310.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/max7310.c b/hw/max7310.c
index 0ce6ac9ec4..c302eb6aa4 100644
--- a/hw/max7310.c
+++ b/hw/max7310.c
@@ -184,7 +184,6 @@ static int max7310_init(i2c_slave *i2c)
 
     max7310_reset(&s->i2c);
 
-    vmstate_register(-1, &vmstate_max7310, s);
     return 0;
 }
 
@@ -206,6 +205,7 @@ void max7310_gpio_out_set(i2c_slave *i2c, int line, qemu_irq handler)
 static I2CSlaveInfo max7310_info = {
     .qdev.name = "max7310",
     .qdev.size = sizeof(MAX7310State),
+    .qdev.vmsd = &vmstate_max7310,
     .init = max7310_init,
     .event = max7310_event,
     .recv = max7310_rx,