summaryrefslogtreecommitdiff
path: root/hw/pci-bridge/dec.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-06-06 21:25:08 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2013-07-04 17:42:48 +0200
commit40c5dce99bac2d1d5f240c8c8ec53dc23ea46a89 (patch)
treef169d56f65f0d92bc0a2a26fa27b52f3bcf1b7f5 /hw/pci-bridge/dec.c
parenteedfac6f38b2ba8be827088cd3facd19d21af1e1 (diff)
downloadqemu-40c5dce99bac2d1d5f240c8c8ec53dc23ea46a89.zip
hw/p*: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/pci-bridge/dec.c')
-rw-r--r--hw/pci-bridge/dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pci-bridge/dec.c b/hw/pci-bridge/dec.c
index 3e8447346a..efc07c42bd 100644
--- a/hw/pci-bridge/dec.c
+++ b/hw/pci-bridge/dec.c
@@ -98,9 +98,9 @@ static int pci_dec_21154_device_init(SysBusDevice *dev)
phb = PCI_HOST_BRIDGE(dev);
- memory_region_init_io(&phb->conf_mem, NULL, &pci_host_conf_le_ops,
+ memory_region_init_io(&phb->conf_mem, OBJECT(dev), &pci_host_conf_le_ops,
dev, "pci-conf-idx", 0x1000);
- memory_region_init_io(&phb->data_mem, NULL, &pci_host_data_le_ops,
+ memory_region_init_io(&phb->data_mem, OBJECT(dev), &pci_host_data_le_ops,
dev, "pci-data-idx", 0x1000);
sysbus_init_mmio(dev, &phb->conf_mem);
sysbus_init_mmio(dev, &phb->data_mem);