diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-09-02 22:52:37 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-09-02 23:12:42 -0400 |
commit | 8a26f5d18d45d49ff38ad2ddfed9c783dd2a19ab (patch) | |
tree | 4e61dff558320a44cab81ba83b8120ce99cfd2f3 /drivers/input/touchscreen/tps6507x-ts.c | |
parent | 98417884477eb3c2d9c19a69c070f7f347af6d76 (diff) |
Input: tps6507x-ts - properly unregister input device on removal
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>
Diffstat (limited to 'drivers/input/touchscreen/tps6507x-ts.c')
-rw-r--r-- | drivers/input/touchscreen/tps6507x-ts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/tps6507x-ts.c b/drivers/input/touchscreen/tps6507x-ts.c index 728620974dd8..c8c136cf7bbc 100644 --- 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) | |||
359 | cancel_delayed_work_sync(&tsc->work); | 359 | cancel_delayed_work_sync(&tsc->work); |
360 | destroy_workqueue(tsc->wq); | 360 | destroy_workqueue(tsc->wq); |
361 | 361 | ||
362 | input_free_device(input_dev); | 362 | input_unregister_device(input_dev); |
363 | 363 | ||
364 | tps6507x_dev->ts = NULL; | 364 | tps6507x_dev->ts = NULL; |
365 | kfree(tsc); | 365 | kfree(tsc); |