summary refs log tree commit diff stats
path: root/hw/tmp105.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/tmp105.c')
-rw-r--r--hw/tmp105.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/tmp105.c b/hw/tmp105.c
index 74141b3789..8343afff8f 100644
--- a/hw/tmp105.c
+++ b/hw/tmp105.c
@@ -228,13 +228,13 @@ static int tmp105_init(i2c_slave *i2c)
 
     tmp105_reset(&s->i2c);
 
-    vmstate_register(-1, &vmstate_tmp105, s);
     return 0;
 }
 
 static I2CSlaveInfo tmp105_info = {
     .qdev.name = "tmp105",
     .qdev.size = sizeof(TMP105State),
+    .qdev.vmsd = &vmstate_tmp105,
     .init = tmp105_init,
     .event = tmp105_event,
     .recv = tmp105_rx,