Skip to content

Commit

Permalink
pata_platform: utilize common ata_platform_remove_one()
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Brian Norris authored and Jeff Garzik committed Dec 3, 2012
1 parent 3e7068d commit ccd1196
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/ata/pata_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ccd1196

Please sign in to comment.