summaryrefslogtreecommitdiffstats
path: root/drivers/input/input.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@insightbb.com>2007-03-16 00:57:25 -0400
committerDmitry Torokhov <dtor@insightbb.com>2007-03-16 00:57:25 -0400
commit54f9e36cb83e7da17dc0596d365fe019a25c226f (patch)
tree815be80fd0a7bbdb15349d2bbc30b557da3d7300 /drivers/input/input.c
parentc8e4c77277ca5db0c4ddbfb4bc628b8abad585b0 (diff)
downloadop-kernel-dev-54f9e36cb83e7da17dc0596d365fe019a25c226f.zip
op-kernel-dev-54f9e36cb83e7da17dc0596d365fe019a25c226f.tar.gz
Input: simplify input_free_device()
Now that sysfs attributes that were marked for deletion can't access their devices we do not need to set name, phys and uniq to NULL. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/input.c')
-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 26393a6..5629e39 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -1024,14 +1024,8 @@ EXPORT_SYMBOL(input_allocate_device);
*/
void input_free_device(struct input_dev *dev)
{
- if (dev) {
-
- mutex_lock(&dev->mutex);
- dev->name = dev->phys = dev->uniq = NULL;
- mutex_unlock(&dev->mutex);
-
+ if (dev)
input_put_device(dev);
- }
}
EXPORT_SYMBOL(input_free_device);
OpenPOWER on IntegriCloud