diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2024-02-01 16:40:24 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2024-02-13 10:59:25 +0300 |
commit | 19985792d4fae4c246d595394ef0c67bfc92eef2 (patch) | |
tree | 9c6bb4b7d858c9ee019b9b63ec1cbc8f8502d51e /hw/isa | |
parent | 5005aed8a7e728d028efb40e243ecfc2b4f3df3a (diff) |
hw/isa/vt82c686: Consolidate the use of device_class_set_parent_realize()
Use device_class_set_parent_realize() to set parent realize() directly.
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/isa')
-rw-r--r-- | hw/isa/vt82c686.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c index d3e0f6d01f..a99eae4f63 100644 --- a/hw/isa/vt82c686.c +++ b/hw/isa/vt82c686.c @@ -328,8 +328,8 @@ static void via_superio_class_init(ObjectClass *klass, void *data) DeviceClass *dc = DEVICE_CLASS(klass); ISASuperIOClass *sc = ISA_SUPERIO_CLASS(klass); - sc->parent_realize = dc->realize; - dc->realize = via_superio_realize; + device_class_set_parent_realize(dc, via_superio_realize, + &sc->parent_realize); } static const TypeInfo via_superio_info = { |