target-i386: ICC bus: Drop BusState::allow_hotplug
Since bus_add_child() no longer cares if BUS is hotpluggable or not, there is no need in setting allow_hotplug field. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
e378acb404
commit
c32e36f6ab
@ -24,18 +24,10 @@
|
|||||||
|
|
||||||
/* icc-bridge implementation */
|
/* icc-bridge implementation */
|
||||||
|
|
||||||
static void icc_bus_init(Object *obj)
|
|
||||||
{
|
|
||||||
BusState *b = BUS(obj);
|
|
||||||
|
|
||||||
b->allow_hotplug = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static const TypeInfo icc_bus_info = {
|
static const TypeInfo icc_bus_info = {
|
||||||
.name = TYPE_ICC_BUS,
|
.name = TYPE_ICC_BUS,
|
||||||
.parent = TYPE_BUS,
|
.parent = TYPE_BUS,
|
||||||
.instance_size = sizeof(ICCBus),
|
.instance_size = sizeof(ICCBus),
|
||||||
.instance_init = icc_bus_init,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user