]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/misc/mos6522.c
qdev: set properties with device_class_set_props()
[thirdparty/qemu.git] / hw / misc / mos6522.c
index 10b85bf751f92abf480640721dede8e44169e1da..19e154b870f96d2a5f436b59b3b978521d333bda 100644 (file)
@@ -502,7 +502,7 @@ static void mos6522_class_init(ObjectClass *oc, void *data)
 
     dc->reset = mos6522_reset;
     dc->vmsd = &vmstate_mos6522;
-    dc->props = mos6522_properties;
+    device_class_set_props(dc, mos6522_properties);
     mdc->parent_reset = dc->reset;
     mdc->set_sr_int = mos6522_set_sr_int;
     mdc->portB_write = mos6522_portB_write;