From 75c2e82f9c08eeb36807e1fab3a98d6eaa724538 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Fri, 27 Nov 2020 13:27:27 +0800 Subject: [PATCH] dlkm: bo: Improve novatek 0flash driver - Since now nova_check_dt only possible return 0 or -ENODEV, so if the driver can't get the active_panel_name properly, that means no display panels are initialized, so need to return -ENODEV on probe in this case, otherwise, it may affect the initialization of other touch ICs. NO_PROP_NEEDED: needn't for shm2018 Change-Id: I6148ac8b10f552f180696221b1517c5fb60915e0 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/1812635 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jianqiu Huang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- drivers/input/touchscreen/nova_0flash_mmi/nt36xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx.c b/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx.c index 7089c7c65097..3bb462c1a6e9 100644 --- a/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx.c +++ b/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx.c @@ -2145,7 +2145,7 @@ static int32_t nvt_ts_probe(struct spi_device *client) struct device_node *dp = client->dev.of_node; ret = nova_check_dt(dp); - if (ret == -EPROBE_DEFER) { + if (ret) { NVT_LOG("panel error\n"); return ret; }