projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a84a322
)
parport: amiga: remove unnecessary platform_set_drvdata()
author
Jingoo Han
<
[email protected]
>
Thu, 22 Aug 2013 02:14:43 +0000
(11:14 +0900)
committer
Greg Kroah-Hartman
<
[email protected]
>
Wed, 28 Aug 2013 04:39:16 +0000
(21:39 -0700)
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 <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/parport/parport_amiga.c
patch
|
blob
|
history
diff --git
a/drivers/parport/parport_amiga.c
b/drivers/parport/parport_amiga.c
index 09503b8d12e667f18109a7ba3595a327c8809737..26ecdea84fb511373fc8a0922f7afc3dd45ddc18 100644
(file)
--- 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;
}