[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 2/7] hw/isa/piix4: Use object_initialize_child() for embedded
From: |
Bernhard Beschow |
Subject: |
[PATCH v3 2/7] hw/isa/piix4: Use object_initialize_child() for embedded struct |
Date: |
Sat, 28 May 2022 21:20:51 +0200 |
Found-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
---
hw/isa/piix4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c
index 9a6d981037..1d04fb6a55 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)
--
2.36.1
- [PATCH v3 0/7] QOM'ify PIIX southbridge creation, Bernhard Beschow, 2022/05/28
- [PATCH v3 2/7] hw/isa/piix4: Use object_initialize_child() for embedded struct,
Bernhard Beschow <=
- [PATCH v3 3/7] hw/isa/piix{3, 4}: Move pci_map_irq_fn's near pci_set_irq_fn's, Bernhard Beschow, 2022/05/28
- [PATCH v3 4/7] hw/isa/piix{3, 4}: QOM'ify PCI device creation and wiring, Bernhard Beschow, 2022/05/28
- [PATCH v3 7/7] hw/isa/piix{3, 4}: Inline and remove create() functions, Bernhard Beschow, 2022/05/28
- [PATCH v3 5/7] hw/isa/piix{3, 4}: Factor out ISABus retrieval from create() functions, Bernhard Beschow, 2022/05/28
- [PATCH v3 6/7] hw/isa/piix4: QOM'ify PIIX4 PM creation, Bernhard Beschow, 2022/05/28