aboutsummaryrefslogtreecommitdiff
path: root/hw/misc/eccmemctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/eccmemctl.c')
-rw-r--r--hw/misc/eccmemctl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/hw/misc/eccmemctl.c b/hw/misc/eccmemctl.c
index 5a14a48..81fc536 100644
--- a/hw/misc/eccmemctl.c
+++ b/hw/misc/eccmemctl.c
@@ -325,17 +325,16 @@ static void ecc_realize(DeviceState *dev, Error **errp)
}
}
-static Property ecc_properties[] = {
+static const Property ecc_properties[] = {
DEFINE_PROP_UINT32("version", ECCState, version, -1),
- DEFINE_PROP_END_OF_LIST(),
};
-static void ecc_class_init(ObjectClass *klass, void *data)
+static void ecc_class_init(ObjectClass *klass, const void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = ecc_realize;
- dc->reset = ecc_reset;
+ device_class_set_legacy_reset(dc, ecc_reset);
dc->vmsd = &vmstate_ecc;
device_class_set_props(dc, ecc_properties);
}