]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr_pci.c
spapr-pci: Convert to QOM realize
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 21 Nov 2013 04:08:55 +0000 (15:08 +1100)
committerAndreas Färber <afaerber@suse.de>
Thu, 13 Mar 2014 02:49:48 +0000 (03:49 +0100)
commitc6ba42f6bce0e361e27803622987ffbd05ce7b7a
tree11cf38345fe221304aaf420a50027d385a741721
parentfb0e843a11abae5b959a4b02be7aef617c023b4e
spapr-pci: Convert to QOM realize

This converts the old-style SysBusDevice::init() callback to a new-style
DeviceClass::realize() callback.

As a part of conversion, this replaces fprintf(stderr) with error_setg()
as realize() does not "return" any value, instead it puts the extended
error into **errp.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Mike Day <ncmike@ncultra.org>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/ppc/spapr_pci.c