With it, remove the explicit call to apply compat properties.

Cc: Paolo Bonzini <[email protected]>
Signed-off-by: Peter Xu <[email protected]>
---
 accel/accel-common.c | 2 +-
 system/vl.c          | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/accel/accel-common.c b/accel/accel-common.c
index 850c5ab4b8..b08eba35cd 100644
--- a/accel/accel-common.c
+++ b/accel/accel-common.c
@@ -134,7 +134,7 @@ int accel_supported_gdbstub_sstep_flags(void)
 static const TypeInfo accel_types[] = {
     {
         .name           = TYPE_ACCEL,
-        .parent         = TYPE_OBJECT,
+        .parent         = TYPE_OBJECT_COMPAT,
         .class_size     = sizeof(AccelClass),
         .instance_size  = sizeof(AccelState),
         .abstract       = true,
diff --git a/system/vl.c b/system/vl.c
index 5091fe52d9..a93201ef53 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -2404,7 +2404,6 @@ static int do_configure_accelerator(void *opaque, 
QemuOpts *opts, Error **errp)
         goto bad;
     }
     accel = ACCEL(object_new_with_class(OBJECT_CLASS(ac)));
-    object_apply_compat_props(OBJECT(accel));
     qemu_opt_foreach(opts, accelerator_set_property,
                      accel,
                      &error_fatal);
-- 
2.50.1


Reply via email to