summaryrefslogtreecommitdiff
path: root/hw/pci-host/versatile.c
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/pci-host/versatile.c
parentfb17dfe0575243a3f60dcefca37fa82ae682f146 (diff)
downloadqemu-213f0c4f619dda7a56612353009e6f30d3348206.tar.gz
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/pci-host/versatile.c')
-rw-r--r--hw/pci-host/versatile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c
index 4b9359ccf6..6b28929d26 100644
--- a/hw/pci-host/versatile.c
+++ b/hw/pci-host/versatile.c
@@ -389,7 +389,7 @@ static void pci_vpb_init(Object *obj)
PCI_DEVFN(11, 0), TYPE_PCI_BUS);
h->bus = &s->pci_bus;
- object_initialize(&s->pci_dev, TYPE_VERSATILE_PCI_HOST);
+ object_initialize(&s->pci_dev, sizeof(s->pci_dev), TYPE_VERSATILE_PCI_HOST);
qdev_set_parent_bus(DEVICE(&s->pci_dev), BUS(&s->pci_bus));
/* Window sizes for VersatilePB; realview_pci's init will override */