diff options
author | Brian Norris <computersforpeace@gmail.com> | 2012-11-02 03:46:22 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-12-03 05:15:23 -0500 |
commit | 3e7068da1194543fb4841072838b967e576adc55 (patch) | |
tree | 4994f5f326e5c9760dcc9411df4a3fe7389f9e01 /drivers/ata | |
parent | 37e1b022bf1c54daf6849deffb65322299493702 (diff) |
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>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/pata_of_platform.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c index 1654dc27e7f8..cd0f9da08637 100644 --- a/drivers/ata/pata_of_platform.c +++ b/drivers/ata/pata_of_platform.c | |||
@@ -76,11 +76,6 @@ static int __devinit pata_of_platform_probe(struct platform_device *ofdev) | |||
76 | reg_shift, pio_mask); | 76 | reg_shift, pio_mask); |
77 | } | 77 | } |
78 | 78 | ||
79 | static int __devexit pata_of_platform_remove(struct platform_device *ofdev) | ||
80 | { | ||
81 | return __pata_platform_remove(&ofdev->dev); | ||
82 | } | ||
83 | |||
84 | static struct of_device_id pata_of_platform_match[] = { | 79 | static struct of_device_id pata_of_platform_match[] = { |
85 | { .compatible = "ata-generic", }, | 80 | { .compatible = "ata-generic", }, |
86 | { .compatible = "electra-ide", }, | 81 | { .compatible = "electra-ide", }, |
@@ -95,7 +90,7 @@ static struct platform_driver pata_of_platform_driver = { | |||
95 | .of_match_table = pata_of_platform_match, | 90 | .of_match_table = pata_of_platform_match, |
96 | }, | 91 | }, |
97 | .probe = pata_of_platform_probe, | 92 | .probe = pata_of_platform_probe, |
98 | .remove = __devexit_p(pata_of_platform_remove), | 93 | .remove = ata_platform_remove_one, |
99 | }; | 94 | }; |
100 | 95 | ||
101 | module_platform_driver(pata_of_platform_driver); | 96 | module_platform_driver(pata_of_platform_driver); |