aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/msf2-sysreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/msf2-sysreg.c')
-rw-r--r--hw/misc/msf2-sysreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/msf2-sysreg.c b/hw/misc/msf2-sysreg.c
index f54382a..b8dde19 100644
--- a/hw/misc/msf2-sysreg.c
+++ b/hw/misc/msf2-sysreg.c
@@ -142,7 +142,7 @@ static void msf2_sysreg_class_init(ObjectClass *klass, void *data)
DeviceClass *dc = DEVICE_CLASS(klass);
dc->vmsd = &vmstate_msf2_sysreg;
- dc->reset = msf2_sysreg_reset;
+ device_class_set_legacy_reset(dc, msf2_sysreg_reset);
device_class_set_props(dc, msf2_sysreg_properties);
dc->realize = msf2_sysreg_realize;
}