diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-06-06 21:25:08 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-04 17:42:47 +0200 |
commit | 2d256e6f652b519c59d0bea926ebb1cb866d4241 (patch) | |
tree | 1e7d50647d1989a65e45b2a0298fbcec27c4e2b4 /hw/block/nvme.c | |
parent | 64bde0f3e7170cc8a9b60da835b9b3cefd03a7a5 (diff) | |
download | qemu-2d256e6f652b519c59d0bea926ebb1cb866d4241.zip qemu-2d256e6f652b519c59d0bea926ebb1cb866d4241.tar.gz qemu-2d256e6f652b519c59d0bea926ebb1cb866d4241.tar.bz2 |
hw/block: pass owner to memory_region_init* functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/block/nvme.c')
-rw-r--r-- | hw/block/nvme.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/block/nvme.c b/hw/block/nvme.c index aa3d9a9..f15f04a 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -777,7 +777,8 @@ static int nvme_init(PCIDevice *pci_dev) n->sq = g_malloc0(sizeof(*n->sq)*n->num_queues); n->cq = g_malloc0(sizeof(*n->cq)*n->num_queues); - memory_region_init_io(&n->iomem, NULL, &nvme_mmio_ops, n, "nvme", n->reg_size); + memory_region_init_io(&n->iomem, OBJECT(n), &nvme_mmio_ops, n, + "nvme", n->reg_size); pci_register_bar(&n->parent_obj, 0, PCI_BASE_ADDRESS_SPACE_MEMORY | PCI_BASE_ADDRESS_MEM_TYPE_64, &n->iomem); |