]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/i386/x86-iommu.c
qdev: set properties with device_class_set_props()
[thirdparty/qemu.git] / hw / i386 / x86-iommu.c
index 1eaf2dd1bcf0a9f337fe36fbe89f959c53bb4ff6..4104060e6881499beadfb39b15e5301dd5260566 100644 (file)
@@ -153,7 +153,7 @@ static void x86_iommu_class_init(ObjectClass *klass, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     dc->realize = x86_iommu_realize;
-    dc->props = x86_iommu_properties;
+    device_class_set_props(dc, x86_iommu_properties);
 }
 
 bool x86_iommu_ir_supported(X86IOMMUState *s)