aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r--drivers/ata/ahci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 03b7a0051887..649dfa57e51c 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1792,8 +1792,7 @@ static void ahci_remove_one (struct pci_dev *pdev)
1792 unsigned int i; 1792 unsigned int i;
1793 int have_msi; 1793 int have_msi;
1794 1794
1795 for (i = 0; i < host->n_ports; i++) 1795 ata_host_detach(host);
1796 ata_port_detach(host->ports[i]);
1797 1796
1798 have_msi = hpriv->flags & AHCI_FLAG_MSI; 1797 have_msi = hpriv->flags & AHCI_FLAG_MSI;
1799 free_irq(host->irq, host); 1798 free_irq(host->irq, host);