From 77cbb28a5b90dbd183e1139734bcc2ac9ecbdd6a Mon Sep 17 00:00:00 2001 From: Andreas Färber Date: Fri, 23 Aug 2013 20:07:28 +0200 Subject: ipack: Pass size to ipack_bus_new_inplace() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To be passed to qbus_create_inplace(). Simplify DEVICE() cast to avoid parent field access. Reviewed-by: Wenchao Xia Signed-off-by: Andreas Färber --- hw/char/tpci200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/char/tpci200.c') 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; -- cgit 1.4.1