diff options
author | Bernhard Beschow <shentey@gmail.com> | 2022-06-03 20:50:36 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2022-06-11 11:44:50 +0200 |
commit | 14f94725c91fb9aebbc8d13241c52ba8b30b39d4 (patch) | |
tree | ade5a5e9615ad5fc062851d709a04928c8383e3a /hw/isa/piix4.c | |
parent | 3963e1398e1b0cbcc0fb21b2cce387ba7f48de5f (diff) | |
download | qemu-14f94725c91fb9aebbc8d13241c52ba8b30b39d4.zip qemu-14f94725c91fb9aebbc8d13241c52ba8b30b39d4.tar.gz qemu-14f94725c91fb9aebbc8d13241c52ba8b30b39d4.tar.bz2 |
hw/isa/piix4: Use object_initialize_child() for embedded struct
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20220603185045.143789-3-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/isa/piix4.c')
-rw-r--r-- | hw/isa/piix4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c index 9a6d981..1d04fb6 100644 --- a/hw/isa/piix4.c +++ b/hw/isa/piix4.c @@ -224,7 +224,7 @@ static void piix4_init(Object *obj) { PIIX4State *s = PIIX4_PCI_DEVICE(obj); - object_initialize(&s->rtc, sizeof(s->rtc), TYPE_MC146818_RTC); + object_initialize_child(obj, "rtc", &s->rtc, TYPE_MC146818_RTC); } static void piix4_class_init(ObjectClass *klass, void *data) |