mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
icc_bus: QOM'ify ICC
For consistency, QOM'ify APIC's parent bus. Signed-off-by: xiaoqiang zhao <zxq_yx_007@163.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
ff6986ce61
commit
494c271784
3 changed files with 13 additions and 14 deletions
|
@ -43,15 +43,13 @@ static const TypeInfo icc_bus_info = {
|
|||
|
||||
static void icc_device_realize(DeviceState *dev, Error **errp)
|
||||
{
|
||||
ICCDevice *id = ICC_DEVICE(dev);
|
||||
ICCDeviceClass *idc = ICC_DEVICE_GET_CLASS(id);
|
||||
ICCDeviceClass *idc = ICC_DEVICE_GET_CLASS(dev);
|
||||
|
||||
if (idc->init) {
|
||||
if (idc->init(id) < 0) {
|
||||
error_setg(errp, "%s initialization failed.",
|
||||
object_get_typename(OBJECT(dev)));
|
||||
}
|
||||
/* convert to QOM */
|
||||
if (idc->realize) {
|
||||
idc->realize(dev, errp);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static void icc_device_class_init(ObjectClass *oc, void *data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue