]> git.proxmox.com Git - qemu.git/blobdiff - hw/ide/ahci.c
memory: add owner argument to initialization functions
[qemu.git] / hw / ide / ahci.c
index 931dacd2607bf49cbecae0bcce772f8ad5b316ee..e7734f3b13ce8e3bef6016e055d2ed4c479a3434 100644 (file)
@@ -1158,8 +1158,8 @@ void ahci_init(AHCIState *s, DeviceState *qdev, AddressSpace *as, int ports)
     s->dev = g_malloc0(sizeof(AHCIDevice) * ports);
     ahci_reg_init(s);
     /* XXX BAR size should be 1k, but that breaks, so bump it to 4k for now */
-    memory_region_init_io(&s->mem, &ahci_mem_ops, s, "ahci", AHCI_MEM_BAR_SIZE);
-    memory_region_init_io(&s->idp, &ahci_idp_ops, s, "ahci-idp", 32);
+    memory_region_init_io(&s->mem, NULL, &ahci_mem_ops, s, "ahci", AHCI_MEM_BAR_SIZE);
+    memory_region_init_io(&s->idp, NULL, &ahci_idp_ops, s, "ahci-idp", 32);
 
     irqs = qemu_allocate_irqs(ahci_irq_set, s, s->ports);