diff --git a/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx.c b/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx.c index d78fcef19c1c..45e8c7439010 100644 --- a/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx.c +++ b/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx.c @@ -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;