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>
This commit is contained in:
parent
5084bca17f
commit
70cca6d872
|
@ -296,10 +296,8 @@ void qdev_free(DeviceState *dev)
|
||||||
bus = QLIST_FIRST(&dev->child_bus);
|
bus = QLIST_FIRST(&dev->child_bus);
|
||||||
qbus_free(bus);
|
qbus_free(bus);
|
||||||
}
|
}
|
||||||
#if 0 /* FIXME: need sane vmstate_unregister function */
|
|
||||||
if (dev->info->vmsd)
|
if (dev->info->vmsd)
|
||||||
vmstate_unregister(dev->info->vmsd, dev);
|
vmstate_unregister(dev->info->vmsd, dev);
|
||||||
#endif
|
|
||||||
if (dev->info->exit)
|
if (dev->info->exit)
|
||||||
dev->info->exit(dev);
|
dev->info->exit(dev);
|
||||||
if (dev->opts)
|
if (dev->opts)
|
||||||
|
|
Loading…
Reference in a new issue