projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9841788
)
Input: tps6507x-ts - properly unregister input device on removal
author
Axel Lin
<axel.lin@gmail.com>
Fri, 3 Sep 2010 02:52:37 +0000
(19:52 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Fri, 3 Sep 2010 03:12:42 +0000
(20:12 -0700)
Once device is registered we should call input_unregister_device()
instead of input_free_device().
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/tps6507x-ts.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/tps6507x-ts.c
b/drivers/input/touchscreen/tps6507x-ts.c
index 728620974dd85f6dde58a52cb8b349e90c25c1dc..c8c136cf7bbc2e5429a102974616a0b6dad369c7 100644
(file)
--- a/
drivers/input/touchscreen/tps6507x-ts.c
+++ b/
drivers/input/touchscreen/tps6507x-ts.c
@@
-359,7
+359,7
@@
static int __devexit tps6507x_ts_remove(struct platform_device *pdev)
cancel_delayed_work_sync(&tsc->work);
destroy_workqueue(tsc->wq);
- input_
free
_device(input_dev);
+ input_
unregister
_device(input_dev);
tps6507x_dev->ts = NULL;
kfree(tsc);