From: Igor Mammedov Date: Fri, 26 Sep 2014 09:28:24 +0000 (+0000) Subject: target-i386: ICC bus: Drop BusState::allow_hotplug X-Git-Tag: qemu-xen-4.6.0-rc1~134^2~23 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c32e36f6ab847e0726542a822606a3525f959ff4;p=qemu-upstream-4.6-testing.git 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 Reviewed-by: Paolo Bonzini Signed-off-by: Andreas Färber --- diff --git a/hw/cpu/icc_bus.c b/hw/cpu/icc_bus.c index 7f44c59b2..9575fd6a4 100644 --- a/hw/cpu/icc_bus.c +++ b/hw/cpu/icc_bus.c @@ -24,18 +24,10 @@ /* icc-bridge implementation */ -static void icc_bus_init(Object *obj) -{ - BusState *b = BUS(obj); - - b->allow_hotplug = true; -} - static const TypeInfo icc_bus_info = { .name = TYPE_ICC_BUS, .parent = TYPE_BUS, .instance_size = sizeof(ICCBus), - .instance_init = icc_bus_init, };