aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-01-20 02:00:26 -0500
committerJeff Garzik <jeff@garzik.org>2007-02-09 17:39:37 -0500
commit0529c159dbdd79794796c1b50b39442d72efbe97 (patch)
tree417e2285c048ca582ba6e1f40119930c460250ad /drivers/ata/ahci.c
parent9ac7849e35f705830f7b016ff272b0ff1f7ff759 (diff)
libata: implement ata_host_detach()
Implement ata_host_detach() which calls ata_port_detach() for each port in the host and export it. ata_port_detach() is now internal and thus un-exported. ata_host_detach() will be used as the 'deregister from libata layer' function after devres conversion. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
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);