]> Git Repo - qemu.git/blobdiff - hw/acpi/vmgenid.c
qdev: set properties with device_class_set_props()
[qemu.git] / hw / acpi / vmgenid.c
index ed92ccc4b89b526eadf1077bc2390f01e0e7b99b..2df7623d74d96e1e33d6d36a33d05f42d775337c 100644 (file)
@@ -18,8 +18,9 @@
 #include "hw/acpi/aml-build.h"
 #include "hw/acpi/vmgenid.h"
 #include "hw/nvram/fw_cfg.h"
+#include "hw/qdev-properties.h"
+#include "migration/vmstate.h"
 #include "sysemu/reset.h"
-#include "sysemu/sysemu.h"
 
 void vmgenid_build_acpi(VmGenIdState *vms, GArray *table_data, GArray *guid,
                         BIOSLinker *linker)
@@ -225,7 +226,7 @@ static void vmgenid_device_class_init(ObjectClass *klass, void *data)
 
     dc->vmsd = &vmstate_vmgenid;
     dc->realize = vmgenid_realize;
-    dc->props = vmgenid_device_properties;
+    device_class_set_props(dc, vmgenid_device_properties);
     dc->hotpluggable = false;
     set_bit(DEVICE_CATEGORY_MISC, dc->categories);
 }
This page took 0.031299 seconds and 4 git commands to generate.