]> git.proxmox.com Git - qemu.git/blobdiff - hw/ssd0303.c
savevm: Port to qdev.vmsd all devices that have qdev
[qemu.git] / hw / ssd0303.c
index f60930e3b74069dcf989dd666b7241856f8a92dd..108c0683c8907c806434609d9eff7eae1d435c36 100644 (file)
@@ -291,13 +291,13 @@ static int ssd0303_init(i2c_slave *i2c)
                                  ssd0303_invalidate_display,
                                  NULL, NULL, s);
     qemu_console_resize(s->ds, 96 * MAGNIFY, 16 * MAGNIFY);
-    vmstate_register(-1, &vmstate_ssd0303, s);
     return 0;
 }
 
 static I2CSlaveInfo ssd0303_info = {
     .qdev.name = "ssd0303",
     .qdev.size = sizeof(ssd0303_state),
+    .qdev.vmsd = &vmstate_ssd0303,
     .init = ssd0303_init,
     .event = ssd0303_event,
     .recv = ssd0303_recv,