Commit 3e7068da authored by Brian Norris's avatar Brian Norris Committed by Jeff Garzik

pata_of_platform: utilize common ata_platform_remove_one()

Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 37e1b022
...@@ -76,11 +76,6 @@ static int __devinit pata_of_platform_probe(struct platform_device *ofdev) ...@@ -76,11 +76,6 @@ static int __devinit pata_of_platform_probe(struct platform_device *ofdev)
reg_shift, pio_mask); reg_shift, pio_mask);
} }
static int __devexit pata_of_platform_remove(struct platform_device *ofdev)
{
return __pata_platform_remove(&ofdev->dev);
}
static struct of_device_id pata_of_platform_match[] = { static struct of_device_id pata_of_platform_match[] = {
{ .compatible = "ata-generic", }, { .compatible = "ata-generic", },
{ .compatible = "electra-ide", }, { .compatible = "electra-ide", },
...@@ -95,7 +90,7 @@ static struct platform_driver pata_of_platform_driver = { ...@@ -95,7 +90,7 @@ static struct platform_driver pata_of_platform_driver = {
.of_match_table = pata_of_platform_match, .of_match_table = pata_of_platform_match,
}, },
.probe = pata_of_platform_probe, .probe = pata_of_platform_probe,
.remove = __devexit_p(pata_of_platform_remove), .remove = ata_platform_remove_one,
}; };
module_platform_driver(pata_of_platform_driver); module_platform_driver(pata_of_platform_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment