aboutsummaryrefslogtreecommitdiff
path: root/hw/isa
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2024-02-01 16:40:25 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2024-02-13 10:59:25 +0300
commitf669bd891475bbdbaf347e12d5e6bdb73a59f058 (patch)
treea81e236d524f782a4cacb338a340b4037e1d38eb /hw/isa
parent19985792d4fae4c246d595394ef0c67bfc92eef2 (diff)
downloadqemu-f669bd891475bbdbaf347e12d5e6bdb73a59f058.zip
qemu-f669bd891475bbdbaf347e12d5e6bdb73a59f058.tar.gz
qemu-f669bd891475bbdbaf347e12d5e6bdb73a59f058.tar.bz2
hw/isa/pc87312: 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/pc87312.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/isa/pc87312.c b/hw/isa/pc87312.c
index ee23f3e..64dd17b 100644
--- a/hw/isa/pc87312.c
+++ b/hw/isa/pc87312.c
@@ -338,10 +338,10 @@ static void pc87312_class_init(ObjectClass *klass, void *data)
DeviceClass *dc = DEVICE_CLASS(klass);
ISASuperIOClass *sc = ISA_SUPERIO_CLASS(klass);
- sc->parent_realize = dc->realize;
- dc->realize = pc87312_realize;
dc->reset = pc87312_reset;
dc->vmsd = &vmstate_pc87312;
+ device_class_set_parent_realize(dc, pc87312_realize,
+ &sc->parent_realize);
device_class_set_props(dc, pc87312_properties);
sc->parallel = (ISASuperIOFuncs){