aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2012-12-03 13:34:39 -0500
committerJeff Garzik <jgarzik@redhat.com>2012-12-03 13:53:25 -0500
commite2ec1817484d7448af2d8bf8a8acb144f87d5238 (patch)
tree8a98026f831ec550ee80e4ee843e793844cc666f /drivers/ata
parent56c1d3b77fc83939ab530b8a871e00176fc5b583 (diff)
sata_highbank: utilize common ata_platform_remove_one()
Signed-off-by: Brian Norris <computersforpeace@gmail.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/sata_highbank.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c
index 75c0f3cc4a8a..dc7d78eecb19 100644
--- a/drivers/ata/sata_highbank.c
+++ b/drivers/ata/sata_highbank.c
@@ -368,16 +368,6 @@ err0:
368 return rc; 368 return rc;
369} 369}
370 370
371static int __devexit ahci_highbank_remove(struct platform_device *pdev)
372{
373 struct device *dev = &pdev->dev;
374 struct ata_host *host = dev_get_drvdata(dev);
375
376 ata_host_detach(host);
377
378 return 0;
379}
380
381#ifdef CONFIG_PM_SLEEP 371#ifdef CONFIG_PM_SLEEP
382static int ahci_highbank_suspend(struct device *dev) 372static int ahci_highbank_suspend(struct device *dev)
383{ 373{
@@ -432,7 +422,7 @@ SIMPLE_DEV_PM_OPS(ahci_highbank_pm_ops,
432 ahci_highbank_suspend, ahci_highbank_resume); 422 ahci_highbank_suspend, ahci_highbank_resume);
433 423
434static struct platform_driver ahci_highbank_driver = { 424static struct platform_driver ahci_highbank_driver = {
435 .remove = __devexit_p(ahci_highbank_remove), 425 .remove = ata_platform_remove_one,
436 .driver = { 426 .driver = {
437 .name = "highbank-ahci", 427 .name = "highbank-ahci",
438 .owner = THIS_MODULE, 428 .owner = THIS_MODULE,