summaryrefslogtreecommitdiffstats
path: root/drivers/parport
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-22 11:14:43 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-27 21:39:16 -0700
commitc06ca9ae8445fbda04f2d8b55863c84e43acde31 (patch)
treea2361d9a72f3c2e30dcab01c20af65469e894697 /drivers/parport
parenta84a322283984d1d1addd75488e3b0c620d0e022 (diff)
downloadlinux-c06ca9ae8445fbda04f2d8b55863c84e43acde31.tar.gz
linux-c06ca9ae8445fbda04f2d8b55863c84e43acde31.tar.bz2
linux-c06ca9ae8445fbda04f2d8b55863c84e43acde31.zip
parport: amiga: remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/parport')
-rw-r--r--drivers/parport/parport_amiga.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/parport/parport_amiga.c b/drivers/parport/parport_amiga.c
index 09503b8d12e6..26ecdea84fb5 100644
--- a/drivers/parport/parport_amiga.c
+++ b/drivers/parport/parport_amiga.c
@@ -232,7 +232,6 @@ static int __exit amiga_parallel_remove(struct platform_device *pdev)
if (port->irq != PARPORT_IRQ_NONE)
free_irq(IRQ_AMIGA_CIAA_FLG, port);
parport_put_port(port);
- platform_set_drvdata(pdev, NULL);
return 0;
}