diff options
author | Nick Chung <nickchung@google.com> | 2023-07-26 06:37:07 +0000 |
---|---|---|
committer | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2023-08-09 03:19:05 +0000 |
commit | 95489579af9f0d1851d4f6be007334e74ec53282 (patch) | |
tree | 01e455485b5c500a8cc049523e1ae01234b0052d | |
parent | ff23efff51e294e552e936e105f3ae4eda0ff8f6 (diff) | |
download | lwis-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.c | 4 |
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: |