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 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1812635
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
wengjun1 2020-11-27 13:27:27 +08:00 • committed by Jun Weng
commit 75c2e82f9c

View file

@ -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;
}