nt36xx: Fix bld error due to wakeup_api_changes

The goto statement needs to be enclosed by NVT_SENSOR_EN.
For devices where this is not defined, we have the following
build error:

+++++++++++++++++++++++++++++++++++++++++++
motorola/kernel/modules/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx.c:2239:1: warning: label 'err_wakeup_source_register_failed' defined but not used [-Wunused-label]
error, forbidden warning: nt36xxx.c:2239
+++++++++++++++++++++++++++++++++++++++++++

NO_PROP_NEEDED: <only applies to bo branch>

Change-Id: Icecdcec4f169c30250c03a23006891ffb25c53bc
Reviewed-on: https://gerrit.mot.com/1705821
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Sergio Vilela <sv008@motorola.com>
This commit is contained in:
Gilberto Gambugge 2020-07-24 15:32:17 -03:00 • committed by Sergio Vilela
commit 09322d9ab9

View file

@ -2235,9 +2235,11 @@ err_register_charger_notify_failed:
err_charger_detection_alloc_failed:
err_charger_notify_wq_failed:
free_irq(client->irq, ts);
#ifdef NVT_SENSOR_EN
#ifndef CONFIG_HAS_WAKELOCK
err_wakeup_source_register_failed:
#endif
#endif
err_int_request_failed:
input_unregister_device(ts->input_dev);
ts->input_dev = NULL;