summaryrefslogtreecommitdiff
path: root/hw/core
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-08-23 19:37:12 +0200
committerAndreas Färber <afaerber@suse.de>2013-08-30 21:15:44 +0200
commit213f0c4f619dda7a56612353009e6f30d3348206 (patch)
treeaee0679740873eb53b39bb8d355d2e4c913313d1 /hw/core
parentfb17dfe0575243a3f60dcefca37fa82ae682f146 (diff)
downloadqemu-213f0c4f619dda7a56612353009e6f30d3348206.tar.gz
qemu-213f0c4f619dda7a56612353009e6f30d3348206.tar.bz2
qemu-213f0c4f619dda7a56612353009e6f30d3348206.zip
qom: Pass available size to object_initialize()
To be passed on to object_initialize_with_type(). Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> (virtio-ccw) Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/core')
-rw-r--r--hw/core/qdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index 81874da5ea..533f6dd122 100644
--- a/hw/core/qdev.c
+++ b/hw/core/qdev.c
@@ -473,7 +473,7 @@ static void bus_unparent(Object *obj)
void qbus_create_inplace(void *bus, size_t size, const char *typename,
DeviceState *parent, const char *name)
{
- object_initialize(bus, typename);
+ object_initialize(bus, size, typename);
qbus_realize(bus, parent, name);
}