summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-12-02 12:36:45 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 10:04:55 -0600
commit70cca6d87261f3ab330e2be34fbe9596b13342ae (patch)
tree62e19357c53592c7a48f7692866ca7a05e3de347
parent5084bca17f9d2b0a39337df4bd991838ed70d866 (diff)
downloadqemu-70cca6d87261f3ab330e2be34fbe9596b13342ae.tar.gz
qemu-70cca6d87261f3ab330e2be34fbe9596b13342ae.tar.bz2
qemu-70cca6d87261f3ab330e2be34fbe9596b13342ae.zip
qdev: enable vmstate_unregister() support
Now vmstate_unregister have the right type Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--hw/qdev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index 875ca501b6..13c9fe236a 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -296,10 +296,8 @@ void qdev_free(DeviceState *dev)
bus = QLIST_FIRST(&dev->child_bus);
qbus_free(bus);
}
-#if 0 /* FIXME: need sane vmstate_unregister function */
if (dev->info->vmsd)
vmstate_unregister(dev->info->vmsd, dev);
-#endif
if (dev->info->exit)
dev->info->exit(dev);
if (dev->opts)