summaryrefslogtreecommitdiff
path: root/ft3658/focaltech_test
diff options
context:
space:
mode:
authorMason Wang <masonwang@google.com>2022-02-13 21:13:15 +0800
committerMason Wang <masonwang@google.com>2022-02-14 16:07:36 +0800
commit81444c81a573269deb9d3661a0576f8d0a887351 (patch)
treef13652af4f72c299cbc886e8420f1c424b16d617 /ft3658/focaltech_test
parentde640e9caaacb1aaa2bcb728abcc01661fd5ba91 (diff)
downloadfocaltech_touch-81444c81a573269deb9d3661a0576f8d0a887351.tar.gz
touch/focaltech: remove all file nodes when unload touch module.
Bug: 219305616 Test: Verify pass by checking if all file nodes are removed clearly when I unload the touch module. Please refer to b/219305616#comment1. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I584886a3460614e9361c7700fde6cba15e2015cc
Diffstat (limited to 'ft3658/focaltech_test')
-rw-r--r--ft3658/focaltech_test/focaltech_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ft3658/focaltech_test/focaltech_test.c b/ft3658/focaltech_test/focaltech_test.c
index a24d9ff..1e6229e 100644
--- a/ft3658/focaltech_test/focaltech_test.c
+++ b/ft3658/focaltech_test/focaltech_test.c
@@ -3764,6 +3764,8 @@ int fts_test_exit(struct fts_ts_data *ts_data)
FTS_TEST_FUNC_ENTER();
fts_free_test_procs();
+ if (fts_proc_test_dir)
+ proc_remove(fts_proc_test_dir);
sysfs_remove_group(&ts_data->dev->kobj, &fts_test_attribute_group);
fts_free(fts_ftest);
FTS_TEST_FUNC_EXIT();