summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Chung <nickchung@google.com>2023-07-26 06:37:07 +0000
committerTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2023-08-09 03:19:05 +0000
commit95489579af9f0d1851d4f6be007334e74ec53282 (patch)
tree01e455485b5c500a8cc049523e1ae01234b0052d
parentff23efff51e294e552e936e105f3ae4eda0ff8f6 (diff)
downloadlwis-95489579af9f0d1851d4f6be007334e74ec53282.tar.gz
LWIS: Revise device deinit function order
Ex: When spi_failure occurs, the current code incorrectly calls lwis_spi_device_deinit(). To correct the cleanup process, call the previous deinit() function - lwis_test_device_deinit() instead. Bug: 293234753 Test: GCA_SMOKE, CTS Change-Id: I8cb0b55bd922c46fbef7d23b320654e13d06a4bd Signed-off-by: Nick Chung <nickchung@google.com>
-rw-r--r--lwis_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lwis_device.c b/lwis_device.c
index 6615283..51758b4 100644
--- a/lwis_device.c
+++ b/lwis_device.c
@@ -1799,9 +1799,9 @@ static int __init lwis_base_device_init(void)
return 0;
spi_failure:
- lwis_spi_device_deinit();
-test_failure:
lwis_test_device_deinit();
+test_failure:
+ lwis_dpm_device_deinit();
dpm_failure:
lwis_slc_device_deinit();
slc_failure: