[Linux-parport] [PATCH] parport: amiga: remove unnecessary platform_set_drvdata()
Jingoo Han
jg1.han at samsung.com
Wed Aug 21 22:14:43 EDT 2013
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 at samsung.com>
---
drivers/parport/parport_amiga.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/parport/parport_amiga.c b/drivers/parport/parport_amiga.c
index 09503b8..26ecdea 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;
}
--
1.7.10.4
More information about the Linux-parport
mailing list