Skip to content

Commit

Permalink
ahci_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
computersforpeace authored and Jeff Garzik committed Dec 3, 2012
1 parent b7db04d commit 83291d6
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions drivers/ata/ahci_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,16 +229,6 @@ static int __devinit ahci_probe(struct platform_device *pdev)
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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 83291d6

Please sign in to comment.