pata_platform: utilize common ata_platform_remove_one()
authorBrian Norris <computersforpeace@gmail.com>
Fri, 2 Nov 2012 07:46:23 +0000 (00:46 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 3 Dec 2012 10:15:24 +0000 (05:15 -0500)
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_platform.c

index f1848ae..449aa29 100644 (file)
@@ -242,14 +242,9 @@ static int __devinit pata_platform_probe(struct platform_device *pdev)
                                     pio_mask);
 }
 
-static int __devexit pata_platform_remove(struct platform_device *pdev)
-{
-       return __pata_platform_remove(&pdev->dev);
-}
-
 static struct platform_driver pata_platform_driver = {
        .probe          = pata_platform_probe,
-       .remove         = __devexit_p(pata_platform_remove),
+       .remove         = ata_platform_remove_one,
        .driver = {
                .name           = DRV_NAME,
                .owner          = THIS_MODULE,