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>
This commit is contained in:
Zhao Liu 2024-02-01 16:40:24 +08:00 committed by Michael Tokarev
parent 5005aed8a7
commit 19985792d4

View File

@ -328,8 +328,8 @@ static void via_superio_class_init(ObjectClass *klass, void *data)
DeviceClass *dc = DEVICE_CLASS(klass); DeviceClass *dc = DEVICE_CLASS(klass);
ISASuperIOClass *sc = ISA_SUPERIO_CLASS(klass); ISASuperIOClass *sc = ISA_SUPERIO_CLASS(klass);
sc->parent_realize = dc->realize; device_class_set_parent_realize(dc, via_superio_realize,
dc->realize = via_superio_realize; &sc->parent_realize);
} }
static const TypeInfo via_superio_info = { static const TypeInfo via_superio_info = {