]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/i386/pc_q35.c
hw/ide/ahci: Pass AHCI context to ahci_ide_create_devs()
[mirror_qemu.git] / hw / i386 / pc_q35.c
index 09e12418f9ce7fb4ec46f5162c1689514595ba4c..d346fa3b1d6bf336bc4e9b78a55f9b673d6dc57f 100644 (file)
@@ -304,7 +304,7 @@ static void pc_q35_init(MachineState *machine)
         idebus[1] = qdev_get_child_bus(DEVICE(pdev), "ide.1");
         g_assert(MAX_SATA_PORTS == ich9->ahci.ports);
         ide_drive_get(hd, ich9->ahci.ports);
-        ahci_ide_create_devs(pdev, hd);
+        ahci_ide_create_devs(&ich9->ahci, hd);
     } else {
         idebus[0] = idebus[1] = NULL;
     }