]> Git Repo - qemu.git/blobdiff - hw/ide/ahci.c
Merge remote-tracking branch 'remotes/kraxel/tags/pull-cirrus-20170316-1' into staging
[qemu.git] / hw / ide / ahci.c
index 6a17acf639a4b0bf8fe2de4dfabcdcdd86978ed0..f60826d6e0d4742d71adda1d13d2a8379f642cf1 100644 (file)
@@ -1485,6 +1485,18 @@ void ahci_realize(AHCIState *s, DeviceState *qdev, AddressSpace *as, int ports)
 
 void ahci_uninit(AHCIState *s)
 {
+    int i, j;
+
+    for (i = 0; i < s->ports; i++) {
+        AHCIDevice *ad = &s->dev[i];
+
+        for (j = 0; j < 2; j++) {
+            IDEState *s = &ad->port.ifs[j];
+
+            ide_exit(s);
+        }
+    }
+
     g_free(s->dev);
 }
 
This page took 0.023992 seconds and 4 git commands to generate.