diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-11-25 21:11:15 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-11-25 21:28:18 -0500 |
commit | d0134e9fcfa393f64b4b406a6aac90d9b929a704 (patch) | |
tree | 9300ada8f58e2a49a19034d8ee74fb7d76342187 | |
parent | 7f9ce649d2675103bbb71fe2c2bb4cd7fb362c37 (diff) |
Input: serio - remove unnecessary pci_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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r-- | drivers/input/serio/pcips2.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/serio/pcips2.c b/drivers/input/serio/pcips2.c index 76f83836fd5a..13062f667e82 100644 --- a/drivers/input/serio/pcips2.c +++ b/drivers/input/serio/pcips2.c | |||
@@ -181,7 +181,6 @@ static void pcips2_remove(struct pci_dev *dev) | |||
181 | struct pcips2_data *ps2if = pci_get_drvdata(dev); | 181 | struct pcips2_data *ps2if = pci_get_drvdata(dev); |
182 | 182 | ||
183 | serio_unregister_port(ps2if->io); | 183 | serio_unregister_port(ps2if->io); |
184 | pci_set_drvdata(dev, NULL); | ||
185 | kfree(ps2if); | 184 | kfree(ps2if); |
186 | pci_release_regions(dev); | 185 | pci_release_regions(dev); |
187 | pci_disable_device(dev); | 186 | pci_disable_device(dev); |