summary refs log tree commit diff stats
path: root/hw/i2c/core.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-10-20 11:07:20 +0200
committerJuan Quintela <quintela@redhat.com>2023-11-01 16:13:58 +0100
commit99b16e8ee4789432cc543fde45902796385713c0 (patch)
tree1b2344f95efa0ff7cea5727c6e2990044c95bf0a /hw/i2c/core.c
parent71daf640d91d49a784ead059c9021070a2107008 (diff)
downloadfocaccia-qemu-99b16e8ee4789432cc543fde45902796385713c0.tar.gz
focaccia-qemu-99b16e8ee4789432cc543fde45902796385713c0.zip
migration: Use vmstate_register_any()
This are the easiest cases, where we were already using
VMSTATE_INSTANCE_ID_ANY.

Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231020090731.28701-3-quintela@redhat.com>
Diffstat (limited to 'hw/i2c/core.c')
-rw-r--r--hw/i2c/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i2c/core.c b/hw/i2c/core.c
index bed594fe59..879a1d45cb 100644
--- a/hw/i2c/core.c
+++ b/hw/i2c/core.c
@@ -64,7 +64,7 @@ I2CBus *i2c_init_bus(DeviceState *parent, const char *name)
     bus = I2C_BUS(qbus_new(TYPE_I2C_BUS, parent, name));
     QLIST_INIT(&bus->current_devs);
     QSIMPLEQ_INIT(&bus->pending_masters);
-    vmstate_register(NULL, VMSTATE_INSTANCE_ID_ANY, &vmstate_i2c_bus, bus);
+    vmstate_register_any(NULL, &vmstate_i2c_bus, bus);
     return bus;
 }