diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-08-28 16:02:32 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-01-06 18:41:32 +0400 |
commit | 3cad405babb461e3c70782c51415f0b64bc7540d (patch) | |
tree | 97b2207f7ce1aec97358abae4cd14984d18d5dab /hw/ide/cmd646.c | |
parent | 107b59698f79b323c4d111c46eb9e3db6f9d258b (diff) | |
download | qemu-3cad405babb461e3c70782c51415f0b64bc7540d.zip qemu-3cad405babb461e3c70782c51415f0b64bc7540d.tar.gz qemu-3cad405babb461e3c70782c51415f0b64bc7540d.tar.bz2 |
vmstate: replace DeviceState with VMStateIf
Replace DeviceState dependency with VMStateIf on vmstate API.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Diffstat (limited to 'hw/ide/cmd646.c')
-rw-r--r-- | hw/ide/cmd646.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index 19984d2..3f9be96 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@ -302,7 +302,7 @@ static void pci_cmd646_ide_realize(PCIDevice *dev, Error **errp) } g_free(irq); - vmstate_register(DEVICE(dev), 0, &vmstate_ide_pci, d); + vmstate_register(VMSTATE_IF(dev), 0, &vmstate_ide_pci, d); qemu_register_reset(cmd646_reset, d); } |