aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/input/input.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 26393a606e6f..5629e397520d 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -1024,14 +1024,8 @@ EXPORT_SYMBOL(input_allocate_device);
1024 */ 1024 */
1025void input_free_device(struct input_dev *dev) 1025void input_free_device(struct input_dev *dev)
1026{ 1026{
1027 if (dev) { 1027 if (dev)
1028
1029 mutex_lock(&dev->mutex);
1030 dev->name = dev->phys = dev->uniq = NULL;
1031 mutex_unlock(&dev->mutex);
1032
1033 input_put_device(dev); 1028 input_put_device(dev);
1034 }
1035} 1029}
1036EXPORT_SYMBOL(input_free_device); 1030EXPORT_SYMBOL(input_free_device);
1037 1031