Skip to content

Commit 83291d6

Browse files
computersforpeaceJeff Garzik
authored andcommitted
ahci_platform: utilize common ata_platform_remove_one()
Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
1 parent b7db04d commit 83291d6

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

‎drivers/ata/ahci_platform.c‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -229,16 +229,6 @@ static int __devinit ahci_probe(struct platform_device *pdev)
229229
return rc;
230230
}
231231

232-
static int __devexit ahci_remove(struct platform_device *pdev)
233-
{
234-
struct device *dev = &pdev->dev;
235-
struct ata_host *host = dev_get_drvdata(dev);
236-
237-
ata_host_detach(host);
238-
239-
return 0;
240-
}
241-
242232
static void ahci_host_stop(struct ata_host *host)
243233
{
244234
struct device *dev = host->dev;
@@ -343,7 +333,7 @@ MODULE_DEVICE_TABLE(of, ahci_of_match);
343333

344334
static struct platform_driver ahci_driver = {
345335
.probe = ahci_probe,
346-
.remove = __devexit_p(ahci_remove),
336+
.remove = ata_platform_remove_one,
347337
.driver = {
348338
.name = "ahci",
349339
.owner = THIS_MODULE,

0 commit comments

Comments
 (0)