summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWendly Li <wendlyli@google.com>2023-03-03 03:53:28 +0000
committerWendly Li <wendlyli@google.com>2023-03-09 09:14:42 +0000
commit442bcbb6cda7a68ef44577d500428ec57d624413 (patch)
treee4a1b0d438ea049b409d373f86e54b555ae698ed
parent627ba2d292693075128e50f9c385d0873906dcfc (diff)
downloadcommon-442bcbb6cda7a68ef44577d500428ec57d624413.tar.gz
touch_offload: fix delete cdev twice
Bug: 269173418 Test: Check touch_offload_cleanup works fine Change-Id: If5a76c3620cc05fd3896033bbdae8bd0c848925e Signed-off-by: Wendly Li <wendlyli@google.com>
-rw-r--r--touch_offload.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/touch_offload.c b/touch_offload.c
index 7cb2470..344b6ae 100644
--- a/touch_offload.c
+++ b/touch_offload.c
@@ -730,8 +730,6 @@ int touch_offload_cleanup(struct touch_offload_context *context)
{
pr_debug("%s\n", __func__);
- cdev_del(&context->dev);
-
device_destroy(context->cls, context->dev_num);
class_destroy(context->cls);