From patchwork Fri Nov 2 07:46:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [05/14] ahci_platform: utilize common ata_platform_remove_one() Date: Thu, 01 Nov 2012 21:46:19 -0000 From: Brian Norris X-Patchwork-Id: 196506 Message-Id: <1351842388-27210-6-git-send-email-computersforpeace@gmail.com> To: Jeff Garzik Cc: , Brian Norris , Tejun Heo Signed-off-by: Brian Norris --- drivers/ata/ahci_platform.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index 05806e0..13e4456 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,