mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
pata_of_platform: utilize common ata_platform_remove_one()
Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
37e1b022bf
commit
3e7068da11
1 changed files with 1 additions and 6 deletions
|
@ -76,11 +76,6 @@ static int __devinit pata_of_platform_probe(struct platform_device *ofdev)
|
|||
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[] = {
|
||||
{ .compatible = "ata-generic", },
|
||||
{ .compatible = "electra-ide", },
|
||||
|
@ -95,7 +90,7 @@ static struct platform_driver pata_of_platform_driver = {
|
|||
.of_match_table = pata_of_platform_match,
|
||||
},
|
||||
.probe = pata_of_platform_probe,
|
||||
.remove = __devexit_p(pata_of_platform_remove),
|
||||
.remove = ata_platform_remove_one,
|
||||
};
|
||||
|
||||
module_platform_driver(pata_of_platform_driver);
|
||||
|
|
Loading…
Reference in a new issue