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: NAlexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: NMike Day <ncmike@ncultra.org> Signed-off-by: NAndreas Färber <afaerber@suse.de>
Showing
想要评论请 注册 或 登录