diff options
author | Juan Quintela <quintela@redhat.com> | 2009-12-02 12:36:46 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 10:05:58 -0600 |
commit | be73cfe2be9a41de4f97e4847b3f12a7d6d61159 (patch) | |
tree | 83419da906307e90aea6146c88f405aeeb32cf7d /hw/usb-uhci.c | |
parent | 70cca6d87261f3ab330e2be34fbe9596b13342ae (diff) | |
download | qemu-be73cfe2be9a41de4f97e4847b3f12a7d6d61159.zip qemu-be73cfe2be9a41de4f97e4847b3f12a7d6d61159.tar.gz qemu-be73cfe2be9a41de4f97e4847b3f12a7d6d61159.tar.bz2 |
savevm: Port to qdev.vmsd all devices that have qdev
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb-uhci.c')
-rw-r--r-- | hw/usb-uhci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index 671916e..ba26a4e 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.c @@ -1086,7 +1086,6 @@ static int usb_uhci_common_initfn(UHCIState *s) pci_register_bar(&s->dev, 4, 0x20, PCI_BASE_ADDRESS_SPACE_IO, uhci_map); - vmstate_register(0, &vmstate_uhci, s); return 0; } @@ -1114,10 +1113,12 @@ static PCIDeviceInfo uhci_info[] = { { .qdev.name = "PIIX3 USB-UHCI", .qdev.size = sizeof(UHCIState), + .qdev.vmsd = &vmstate_uhci, .init = usb_uhci_piix3_initfn, },{ .qdev.name = "PIIX4 USB-UHCI", .qdev.size = sizeof(UHCIState), + .qdev.vmsd = &vmstate_uhci, .init = usb_uhci_piix4_initfn, },{ /* end of list */ |