aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/virt_ctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/virt_ctrl.c')
-rw-r--r--hw/misc/virt_ctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/virt_ctrl.c b/hw/misc/virt_ctrl.c
index 1a6c744..aa00d6c 100644
--- a/hw/misc/virt_ctrl.c
+++ b/hw/misc/virt_ctrl.c
@@ -129,7 +129,7 @@ static void virt_ctrl_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
- dc->reset = virt_ctrl_reset;
+ device_class_set_legacy_reset(dc, virt_ctrl_reset);
dc->realize = virt_ctrl_realize;
dc->vmsd = &vmstate_virt_ctrl;
}