]> Git Repo - qemu.git/blobdiff - hw/misc/iotkit-sysinfo.c
qdev: set properties with device_class_set_props()
[qemu.git] / hw / misc / iotkit-sysinfo.c
index 3e1cf0ec3455b253a6bb0a512d7a763e1b5dfa6b..b2dcfc4376cc53374d51a823db08d2d6ff598b51 100644 (file)
 #include "qemu/module.h"
 #include "trace.h"
 #include "qapi/error.h"
-#include "sysemu/sysemu.h"
 #include "hw/sysbus.h"
 #include "hw/registerfields.h"
 #include "hw/misc/iotkit-sysinfo.h"
+#include "hw/qdev-properties.h"
 
 REG32(SYS_VERSION, 0x0)
 REG32(SYS_CONFIG, 0x4)
@@ -121,7 +121,7 @@ static void iotkit_sysinfo_class_init(ObjectClass *klass, void *data)
      * does not need a reset function or VMState.
      */
 
-    dc->props = iotkit_sysinfo_props;
+    device_class_set_props(dc, iotkit_sysinfo_props);
 }
 
 static const TypeInfo iotkit_sysinfo_info = {
This page took 0.023006 seconds and 4 git commands to generate.