diff options
author | Markus Armbruster | 2020-06-10 07:32:38 +0200 |
---|---|---|
committer | Markus Armbruster | 2020-06-15 22:06:04 +0200 |
commit | 5a147c8c51d42fcdf5befc2982715b4b407f612e (patch) | |
tree | 74c0340ac0e1d8cc99dab09f08db45e5ea6bab37 /hw/arm/xlnx-versal.c | |
parent | sysbus: Convert qdev_set_parent_bus() use with Coccinelle, part 2 (diff) | |
download | qemu-5a147c8c51d42fcdf5befc2982715b4b407f612e.tar.gz qemu-5a147c8c51d42fcdf5befc2982715b4b407f612e.tar.xz qemu-5a147c8c51d42fcdf5befc2982715b4b407f612e.zip |
sysbus: Convert qdev_set_parent_bus() use with Coccinelle, part 3
These are init/realize pairs produced by the previous commit's
Coccinelle script where the argument test doesn't quite match. They
need even more careful review.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200610053247.1583243-50-armbru@redhat.com>
Diffstat (limited to 'hw/arm/xlnx-versal.c')
-rw-r--r-- | hw/arm/xlnx-versal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/arm/xlnx-versal.c b/hw/arm/xlnx-versal.c index a27c315a6b..20f0121ab0 100644 --- a/hw/arm/xlnx-versal.c +++ b/hw/arm/xlnx-versal.c @@ -238,10 +238,10 @@ static void versal_create_rtc(Versal *s, qemu_irq *pic) SysBusDevice *sbd; MemoryRegion *mr; - sysbus_init_child_obj(OBJECT(s), "rtc", &s->pmc.rtc, sizeof(s->pmc.rtc), - TYPE_XLNX_ZYNQMP_RTC); + object_initialize_child(OBJECT(s), "rtc", &s->pmc.rtc, + TYPE_XLNX_ZYNQMP_RTC); sbd = SYS_BUS_DEVICE(&s->pmc.rtc); - qdev_init_nofail(DEVICE(sbd)); + sysbus_realize(SYS_BUS_DEVICE(sbd), &error_fatal); mr = sysbus_mmio_get_region(sbd, 0); memory_region_add_subregion(&s->mr_ps, MM_PMC_RTC, mr); |