touch : raydium : fix reboot issue
use corresponding free api in shutdown and remove. Change-Id: Id009c764e4007e8bd2e010f8f06e61653df88f21 Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
720eb08518
commit
e6702160cf
@@ -2553,7 +2553,8 @@ if (active_panel)
|
|||||||
raydium_enable_regulator(g_raydium_ts, false);
|
raydium_enable_regulator(g_raydium_ts, false);
|
||||||
raydium_get_regulator(g_raydium_ts, false);
|
raydium_get_regulator(g_raydium_ts, false);
|
||||||
|
|
||||||
kfree(g_raydium_ts);
|
devm_kfree(&client->dev, g_raydium_ts);
|
||||||
|
g_raydium_ts = NULL;
|
||||||
|
|
||||||
i2c_set_clientdata(client, NULL);
|
i2c_set_clientdata(client, NULL);
|
||||||
LOGD(LOG_INFO, "[touch] %s: done\n", __func__);
|
LOGD(LOG_INFO, "[touch] %s: done\n", __func__);
|
||||||
@@ -2601,7 +2602,8 @@ if (active_panel)
|
|||||||
raydium_enable_regulator(g_raydium_ts, false);
|
raydium_enable_regulator(g_raydium_ts, false);
|
||||||
raydium_get_regulator(g_raydium_ts, false);
|
raydium_get_regulator(g_raydium_ts, false);
|
||||||
|
|
||||||
kfree(g_raydium_ts);
|
devm_kfree(&client->dev, g_raydium_ts);
|
||||||
|
g_raydium_ts = NULL;
|
||||||
|
|
||||||
i2c_set_clientdata(client, NULL);
|
i2c_set_clientdata(client, NULL);
|
||||||
LOGD(LOG_INFO, "[touch] %s: done\n", __func__);
|
LOGD(LOG_INFO, "[touch] %s: done\n", __func__);
|
||||||
|
Reference in New Issue
Block a user