diff options
author | Andreas Färber <afaerber@suse.de> | 2013-08-23 20:23:55 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-08-30 20:14:39 +0200 |
commit | dd301ca607feddab3b44f927cd36aee004c40e1a (patch) | |
tree | ff69c5b63acf77912f4957fccf1bda21e741e147 /hw/pci-host/versatile.c | |
parent | c6baf942e084e0bc40ee37c8d8672ac9c5ea270b (diff) |
pci: Pass size to pci_bus_new_inplace()
To be passed to qbus_create_inplace().
Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/pci-host/versatile.c')
-rw-r--r-- | hw/pci-host/versatile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c index 9238d39b00..4b9359ccf6 100644 --- a/hw/pci-host/versatile.c +++ b/hw/pci-host/versatile.c @@ -384,7 +384,7 @@ static void pci_vpb_init(Object *obj) memory_region_init(&s->pci_io_space, OBJECT(s), "pci_io", 1ULL << 32); memory_region_init(&s->pci_mem_space, OBJECT(s), "pci_mem", 1ULL << 32); - pci_bus_new_inplace(&s->pci_bus, DEVICE(obj), "pci", + pci_bus_new_inplace(&s->pci_bus, sizeof(s->pci_bus), DEVICE(obj), "pci", &s->pci_mem_space, &s->pci_io_space, PCI_DEVFN(11, 0), TYPE_PCI_BUS); h->bus = &s->pci_bus; |