diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-22 04:14:43 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-28 06:39:16 +0200 |
commit | c06ca9ae8445fbda04f2d8b55863c84e43acde31 (patch) | |
tree | a2361d9a72f3c2e30dcab01c20af65469e894697 /drivers/parport | |
parent | vme: vme_vmivme7805.c: add missing __iomem annotation (diff) | |
download | linux-c06ca9ae8445fbda04f2d8b55863c84e43acde31.tar.xz 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.c | 1 |
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; } |