From: Brian Norris Date: Mon, 3 Dec 2012 18:34:39 +0000 (-0800) Subject: sata_highbank: utilize common ata_platform_remove_one() X-Git-Tag: MMI-PSA29.97-13-9~15361^2~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e2ec1817484d7448af2d8bf8a8acb144f87d5238;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git sata_highbank: utilize common ata_platform_remove_one() Signed-off-by: Brian Norris Acked-by: Tejun Heo Signed-off-by: Jeff Garzik --- 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: return rc; } -static int __devexit ahci_highbank_remove(struct platform_device *pdev) -{ - struct device *dev = &pdev->dev; - struct ata_host *host = dev_get_drvdata(dev); - - ata_host_detach(host); - - return 0; -} - #ifdef CONFIG_PM_SLEEP static int ahci_highbank_suspend(struct device *dev) { @@ -432,7 +422,7 @@ SIMPLE_DEV_PM_OPS(ahci_highbank_pm_ops, ahci_highbank_suspend, ahci_highbank_resume); static struct platform_driver ahci_highbank_driver = { - .remove = __devexit_p(ahci_highbank_remove), + .remove = ata_platform_remove_one, .driver = { .name = "highbank-ahci", .owner = THIS_MODULE,