summaryrefslogtreecommitdiffstats
path: root/hw/char/tpci200.c
diff options
context:
space:
mode:
authorAndreas Färber2013-08-23 20:07:28 +0200
committerAndreas Färber2013-08-30 20:14:38 +0200
commit77cbb28a5b90dbd183e1139734bcc2ac9ecbdd6a (patch)
tree4cafe128e6bdaec2e2f992782d73039f337c6b0e /hw/char/tpci200.c
parentintel-hda: Pass size to hda_codec_bus_init() (diff)
downloadqemu-77cbb28a5b90dbd183e1139734bcc2ac9ecbdd6a.tar.gz
qemu-77cbb28a5b90dbd183e1139734bcc2ac9ecbdd6a.tar.xz
qemu-77cbb28a5b90dbd183e1139734bcc2ac9ecbdd6a.zip
ipack: Pass size to ipack_bus_new_inplace()
To be passed to qbus_create_inplace(). Simplify DEVICE() cast to avoid parent field access. Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/char/tpci200.c')
-rw-r--r--hw/char/tpci200.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/char/tpci200.c b/hw/char/tpci200.c
index d9e17b2956..e04ff26019 100644
--- a/hw/char/tpci200.c
+++ b/hw/char/tpci200.c
@@ -607,7 +607,7 @@ static int tpci200_initfn(PCIDevice *pci_dev)
pci_register_bar(&s->dev, 4, PCI_BASE_ADDRESS_SPACE_MEMORY, &s->las2);
pci_register_bar(&s->dev, 5, PCI_BASE_ADDRESS_SPACE_MEMORY, &s->las3);
- ipack_bus_new_inplace(&s->bus, DEVICE(&s->dev), NULL,
+ ipack_bus_new_inplace(&s->bus, sizeof(s->bus), DEVICE(pci_dev), NULL,
N_MODULES, tpci200_set_irq);
return 0;