3c6ef471ee
Convert from qdev_realize(), qdev_realize_and_unref() with null @bus argument to sysbus_realize(), sysbus_realize_and_unref(). Coccinelle script: @@ expression dev, errp; @@ - qdev_realize(DEVICE(dev), NULL, errp); + sysbus_realize(SYS_BUS_DEVICE(dev), errp); @@ expression sysbus_dev, dev, errp; @@ + sysbus_dev = SYS_BUS_DEVICE(dev); - qdev_realize_and_unref(dev, NULL, errp); + sysbus_realize_and_unref(sysbus_dev, errp); - sysbus_dev = SYS_BUS_DEVICE(dev); @@ expression sysbus_dev, dev, errp; expression expr; @@ sysbus_dev = SYS_BUS_DEVICE(dev); ... when != dev = expr; - qdev_realize_and_unref(dev, NULL, errp); + sysbus_realize_and_unref(sysbus_dev, errp); @@ expression dev, errp; @@ - qdev_realize_and_unref(DEVICE(dev), NULL, errp); + sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), errp); @@ expression dev, errp; @@ - qdev_realize_and_unref(dev, NULL, errp); + sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), errp); Whitespace changes minimized manually. Signed-off-by: Markus Armbruster <armbru@redhat.com> Acked-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200610053247.1583243-46-armbru@redhat.com> [Conflicts in hw/misc/empty_slot.c and hw/sparc/leon3.c resolved] |
||
---|---|---|
.. | ||
macio | ||
a9scu.h | ||
allwinner-cpucfg.h | ||
allwinner-h3-ccu.h | ||
allwinner-h3-dramc.h | ||
allwinner-h3-sysctrl.h | ||
allwinner-sid.h | ||
arm11scu.h | ||
arm_integrator_debug.h | ||
armsse-cpuid.h | ||
armsse-mhu.h | ||
aspeed_scu.h | ||
aspeed_sdmc.h | ||
aspeed_xdma.h | ||
auxbus.h | ||
bcm2835_mbox_defs.h | ||
bcm2835_mbox.h | ||
bcm2835_mphi.h | ||
bcm2835_property.h | ||
bcm2835_rng.h | ||
bcm2835_thermal.h | ||
cbus.h | ||
empty_slot.h | ||
grlib_ahb_apb_pnp.h | ||
imx6_ccm.h | ||
imx6_src.h | ||
imx6ul_ccm.h | ||
imx7_ccm.h | ||
imx7_gpr.h | ||
imx7_snvs.h | ||
imx25_ccm.h | ||
imx31_ccm.h | ||
imx_ccm.h | ||
imx_rngc.h | ||
iotkit-secctl.h | ||
iotkit-sysctl.h | ||
iotkit-sysinfo.h | ||
ivshmem.h | ||
mac_via.h | ||
mips_cmgcr.h | ||
mips_cpc.h | ||
mips_itu.h | ||
mos6522.h | ||
mps2-fpgaio.h | ||
mps2-scc.h | ||
msf2-sysreg.h | ||
nrf51_rng.h | ||
pca9552_regs.h | ||
pca9552.h | ||
pvpanic.h | ||
stm32f2xx_syscfg.h | ||
stm32f4xx_exti.h | ||
stm32f4xx_syscfg.h | ||
tmp105_regs.h | ||
tz-mpc.h | ||
tz-msc.h | ||
tz-ppc.h | ||
unimp.h | ||
vmcoreinfo.h | ||
zynq-xadc.h |