libata: implement ata_host_detach()
[powerpc.git] / drivers / ata / ahci.c
index 03b7a00..649dfa5 100644 (file)
@@ -1792,8 +1792,7 @@ static void ahci_remove_one (struct pci_dev *pdev)
        unsigned int i;
        int have_msi;
 
-       for (i = 0; i < host->n_ports; i++)
-               ata_port_detach(host->ports[i]);
+       ata_host_detach(host);
 
        have_msi = hpriv->flags & AHCI_FLAG_MSI;
        free_irq(host->irq, host);