projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8e4c77
)
Input: simplify input_free_device()
author
Dmitry Torokhov
<dtor@insightbb.com>
Fri, 16 Mar 2007 04:57:25 +0000
(
00:57
-0400)
committer
Dmitry Torokhov
<dtor@insightbb.com>
Fri, 16 Mar 2007 04:57:25 +0000
(
00:57
-0400)
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>
drivers/input/input.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/input.c
b/drivers/input/input.c
index 26393a606e6f46f46ee940636a25c8f5a79dc119..5629e397520ddfe2ee4a4777efe3235089f632e4 100644
(file)
--- 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);