diff options
Diffstat (limited to 'touch_bus_negotiator.c')
-rw-r--r-- | touch_bus_negotiator.c | 6 |
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++) { |