aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2012-11-02 03:46:23 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-12-03 05:15:24 -0500
commitccd1196a924a0fd64132297a121794c347f52d3a (patch)
treed40ffc50d44cf5c269e6e90fac1c82e64ac8abd9
parent3e7068da1194543fb4841072838b967e576adc55 (diff)
pata_platform: utilize common ata_platform_remove_one()
Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r--drivers/ata/pata_platform.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c
index f1848aeda783..449aa29931bc 100644
--- a/drivers/ata/pata_platform.c
+++ b/drivers/ata/pata_platform.c
@@ -242,14 +242,9 @@ static int __devinit pata_platform_probe(struct platform_device *pdev)
242 pio_mask); 242 pio_mask);
243} 243}
244 244
245static int __devexit pata_platform_remove(struct platform_device *pdev)
246{
247 return __pata_platform_remove(&pdev->dev);
248}
249
250static struct platform_driver pata_platform_driver = { 245static struct platform_driver pata_platform_driver = {
251 .probe = pata_platform_probe, 246 .probe = pata_platform_probe,
252 .remove = __devexit_p(pata_platform_remove), 247 .remove = ata_platform_remove_one,
253 .driver = { 248 .driver = {
254 .name = DRV_NAME, 249 .name = DRV_NAME,
255 .owner = THIS_MODULE, 250 .owner = THIS_MODULE,