diff --git a/drivers/input/touchscreen/nova_mmi/nt36xxx.c b/drivers/input/touchscreen/nova_mmi/nt36xxx.c index d3922f9ac784..af3daba3bede 100644 --- a/drivers/input/touchscreen/nova_mmi/nt36xxx.c +++ b/drivers/input/touchscreen/nova_mmi/nt36xxx.c @@ -39,6 +39,7 @@ #include #include #include +#include #if defined(CONFIG_HQ_DEV_INFO) #include @@ -1299,6 +1300,7 @@ static int32_t nvt_ts_probe(struct i2c_client *client, const struct i2c_device_i #if ((TOUCH_KEY_NUM > 0) || WAKEUP_GESTURE) int32_t retry = 0; #endif + struct pinctrl *pinctrl; NVT_LOG("start\n"); @@ -1319,6 +1321,12 @@ static int32_t nvt_ts_probe(struct i2c_client *client, const struct i2c_device_i goto err_gpio_config_failed; } + pinctrl = devm_pinctrl_get_select(&client->dev, "active"); + if (IS_ERR(pinctrl)) { + long int error = PTR_ERR(pinctrl); + NVT_LOG("pinctrl failed err %ld\n", error); + } + if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { NVT_ERR("i2c_check_functionality failed. (no I2C_FUNC_I2C)\n"); ret = -ENODEV;