diff options
author | Brian Norris <computersforpeace@gmail.com> | 2012-11-02 00:46:19 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-12-03 05:15:19 -0500 |
commit | 83291d65cbeadda2bd600b6c500df7046dcd6fa9 (patch) | |
tree | 090cdf02776084a157325161fb73ec3224fb7acc /drivers/ata | |
parent | b7db04d9264fca4b00e949da7b3180c50e243fca (diff) | |
download | talos-obmc-linux-83291d65cbeadda2bd600b6c500df7046dcd6fa9.tar.gz talos-obmc-linux-83291d65cbeadda2bd600b6c500df7046dcd6fa9.zip |
ahci_platform: utilize common ata_platform_remove_one()
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/ahci_platform.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index 5aa4309d4481..1d90690d85f7 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -229,16 +229,6 @@ free_clk: return rc; } -static int __devexit ahci_remove(struct platform_device *pdev) -{ - struct device *dev = &pdev->dev; - struct ata_host *host = dev_get_drvdata(dev); - - ata_host_detach(host); - - return 0; -} - static void ahci_host_stop(struct ata_host *host) { struct device *dev = host->dev; @@ -343,7 +333,7 @@ MODULE_DEVICE_TABLE(of, ahci_of_match); static struct platform_driver ahci_driver = { .probe = ahci_probe, - .remove = __devexit_p(ahci_remove), + .remove = ata_platform_remove_one, .driver = { .name = "ahci", .owner = THIS_MODULE, |