diff options
author | Brian Norris <computersforpeace@gmail.com> | 2012-11-02 03:46:19 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-12-03 05:15:19 -0500 |
commit | 83291d65cbeadda2bd600b6c500df7046dcd6fa9 (patch) | |
tree | 090cdf02776084a157325161fb73ec3224fb7acc /drivers/ata/ahci_platform.c | |
parent | b7db04d9264fca4b00e949da7b3180c50e243fca (diff) |
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/ahci_platform.c')
-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: | |||
229 | return rc; | 229 | return rc; |
230 | } | 230 | } |
231 | 231 | ||
232 | static int __devexit ahci_remove(struct platform_device *pdev) | ||
233 | { | ||
234 | struct device *dev = &pdev->dev; | ||
235 | struct ata_host *host = dev_get_drvdata(dev); | ||
236 | |||
237 | ata_host_detach(host); | ||
238 | |||
239 | return 0; | ||
240 | } | ||
241 | |||
242 | static void ahci_host_stop(struct ata_host *host) | 232 | static void ahci_host_stop(struct ata_host *host) |
243 | { | 233 | { |
244 | struct device *dev = host->dev; | 234 | struct device *dev = host->dev; |
@@ -343,7 +333,7 @@ MODULE_DEVICE_TABLE(of, ahci_of_match); | |||
343 | 333 | ||
344 | static struct platform_driver ahci_driver = { | 334 | static struct platform_driver ahci_driver = { |
345 | .probe = ahci_probe, | 335 | .probe = ahci_probe, |
346 | .remove = __devexit_p(ahci_remove), | 336 | .remove = ata_platform_remove_one, |
347 | .driver = { | 337 | .driver = { |
348 | .name = "ahci", | 338 | .name = "ahci", |
349 | .owner = THIS_MODULE, | 339 | .owner = THIS_MODULE, |