mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
power/charger: add free IRQ before reset
add free IRQ before reset to stop thread IRQ.Prevent async action to call I2C. Change-Id: I9499ace1f54969802cae6d3ee5cd3f62b593d405 Reviewed-on: https://gerrit.mot.com/2066499 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
3b040bb312
commit
8daf230501
1 changed files with 2 additions and 0 deletions
|
|
@ -3268,6 +3268,8 @@ static void rt9467_shutdown(struct i2c_client *client)
|
|||
|
||||
pr_info("%s\n", __func__);
|
||||
if (info) {
|
||||
devm_free_irq(&client->dev, client->irq, info);
|
||||
|
||||
ret = rt9467_sw_reset(info);
|
||||
if (ret < 0)
|
||||
pr_notice("%s: sw reset fail\n", __func__);
|
||||
|
|
|
|||
Loading…
Reference in a new issue