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:
7f9ce64
)
Input: serio - remove unnecessary pci_set_drvdata()
author
Jingoo Han
<
[email protected]
>
Tue, 26 Nov 2013 02:11:15 +0000
(18:11 -0800)
committer
Dmitry Torokhov
<
[email protected]
>
Tue, 26 Nov 2013 02:28:18 +0000
(18:28 -0800)
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: Dmitry Torokhov <
[email protected]
>
drivers/input/serio/pcips2.c
patch
|
blob
|
history
diff --git
a/drivers/input/serio/pcips2.c
b/drivers/input/serio/pcips2.c
index 76f83836fd5a557b513eb8d3e91b2e964bfa5507..13062f667e82650467495702b35b038cff616130 100644
(file)
--- a/
drivers/input/serio/pcips2.c
+++ b/
drivers/input/serio/pcips2.c
@@
-181,7
+181,6
@@
static void pcips2_remove(struct pci_dev *dev)
struct pcips2_data *ps2if = pci_get_drvdata(dev);
serio_unregister_port(ps2if->io);
- pci_set_drvdata(dev, NULL);
kfree(ps2if);
pci_release_regions(dev);
pci_disable_device(dev);