summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidycchen <davidycchen@google.com>2021-06-07 19:38:26 +0800
committerdavidycchen <davidycchen@google.com>2021-06-08 09:33:37 +0800
commit7b53da6fbd387f5e6091c792a267da7199c271f5 (patch)
treeeec7eaa50cb4ecb1c25fb964870822106a34b13d
parent4267ff366824f0049bf39ce78ea5668a3200af5d (diff)
downloadcommon-android-gs-raviole-5.10-android12L.tar.gz
Return 0 when the tbn_context doesn't exist because tbn is not an always on feature. Bug: 186717670 Bug: 190339589 Test: flash boot and vendor_boot. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I4a842b53b4efaa89116ecedbabd82bbf1a311e71
-rw-r--r--touch_bus_negotiator.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/touch_bus_negotiator.c b/touch_bus_negotiator.c
index e7071b7..0bfbeab 100644
--- a/touch_bus_negotiator.c
+++ b/touch_bus_negotiator.c
@@ -183,8 +183,10 @@ int register_tbn(u32 *output)
{
u32 i = 0;
- if (!tbn_context)
- return -ENODEV;
+ if (!tbn_context) {
+ pr_warn("%s: tbn_context doesn't exist.", __func__);
+ return 0;
+ }
mutex_lock(&tbn_context->dev_mask_mutex);
for (i = 0; i < tbn_context->max_devices; i++) {