Patchwork [11/12] qdev: enable vmstate_unregister() support

login
register
mail settings
Submitter Juan Quintela
Date Dec. 2, 2009, 11:36 a.m.
Message ID <2659006172c45495923d7a50a8d60c43a41299b4.1259753146.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/40002/
State New
Headers show

Comments

Juan Quintela - Dec. 2, 2009, 11:36 a.m.
Now vmstate_unregister have the right type

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/qdev.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Patch

diff --git a/hw/qdev.c b/hw/qdev.c
index d19d531..e9d76d4 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)