diff --git a/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_cfg_bin.c b/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_cfg_bin.c index a1c2a9fa31e3..53540d4f8e22 100644 --- a/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_cfg_bin.c +++ b/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_cfg_bin.c @@ -184,8 +184,6 @@ static int goodix_cfg_bin_proc(struct goodix_ts_core *core_data) ts_err("failed get cfg and reg info, update fw then retry"); } - goodix_modules.good2go = true; - /*debug*/ ts_info("cfg_send_flag:0x%04x", ts_dev->reg.cfg_send_flag); ts_info("pid:0x%04x", ts_dev->reg.pid); diff --git a/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_ts_core.c b/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_ts_core.c index f65de357730a..f1a22a5e0508 100644 --- a/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_ts_core.c +++ b/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_ts_core.c @@ -82,11 +82,6 @@ static void __do_register_ext_module(struct work_struct *work) return; } - /* driver probe failed */ - if (!goodix_modules.good2go) { - ts_err("Can't register ext_module probe failed"); - return; - } ts_info("start register ext_module"); /* prority level *must* be set */ @@ -2176,7 +2171,6 @@ static int goodix_ts_probe(struct platform_device *pdev) ts_err("goodix device confirm failed[skip]"); goto out; } - goodix_modules.good2go = true; msleep(100); /* Try start a thread to get config-bin info */ diff --git a/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_ts_core.h b/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_ts_core.h index 19a61b1f2c3f..4a3f71b0da3f 100644 --- a/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_ts_core.h +++ b/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_ts_core.h @@ -86,8 +86,6 @@ * @mutex: mutex lock * @count: current number of registered external module * @wq: workqueue to do register work - * @good2go: if goodix touch detection failed, then no - * registration is allowed. * @core_data: core_data pointer */ struct goodix_module { @@ -96,7 +94,6 @@ struct goodix_module { struct mutex mutex; unsigned int count; struct workqueue_struct *wq; - bool good2go; struct completion core_comp; struct goodix_ts_core *core_data; };