1 From 917c246a1a6fab53041e5d5bb756e5b564871415 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 8 Sep 2021 14:46:17 +0100
4 Subject: [PATCH 0302/1085] Input: edt-ft54x6: Clean up timer and workqueue on
7 If no interrupt is defined then a timer and workqueue are used
8 to poll the controller.
9 On remove these were not being cleaned up correctly.
11 Fixes: ca61fdaba79f "Input: edt-ft5x06: Poll the device if no interrupt is
14 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
16 drivers/input/touchscreen/edt-ft5x06.c | 4 ++++
17 1 file changed, 4 insertions(+)
19 --- a/drivers/input/touchscreen/edt-ft5x06.c
20 +++ b/drivers/input/touchscreen/edt-ft5x06.c
21 @@ -1420,6 +1420,10 @@ static void edt_ft5x06_ts_remove(struct
23 struct edt_ft5x06_ts_data *tsdata = i2c_get_clientdata(client);
26 + del_timer(&tsdata->timer);
27 + cancel_work_sync(&tsdata->work_i2c_poll);
29 edt_ft5x06_ts_teardown_debugfs(tsdata);
30 regmap_exit(tsdata->regmap);