mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
sc760x_charger_mmi: fix build error of irq_enabled
sc760x_charger_mmi: fix build error of irq_enabled Change-Id: If62e67c8938bb43145aa087244967bc022a6a0d8 Signed-off-by: xuwt2 <xuwt2@lenovo.com> Reviewed-on: https://gerrit.mot.com/2548792 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: litong <litong20@motorola.com> Reviewed-by: Guobin Zhang <zhanggb@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
e144cc561d
commit
aa344af5ee
1 changed files with 2 additions and 2 deletions
|
|
@ -234,7 +234,7 @@ static int sc760x_enable_chip(struct sc760x_chip *sc, bool en)
|
|||
if (!sc->irq_enabled) {
|
||||
enable_irq_wake(sc->irq);
|
||||
enable_irq(sc->irq);
|
||||
sc->irq_enable = true;
|
||||
sc->irq_enabled = true;
|
||||
}
|
||||
ret = sc760x_init_device(sc);
|
||||
if (ret < 0) {
|
||||
|
|
@ -244,7 +244,7 @@ static int sc760x_enable_chip(struct sc760x_chip *sc, bool en)
|
|||
if (sc->irq_enabled) {
|
||||
disable_irq_wake(sc->irq);
|
||||
disable_irq(sc->irq);
|
||||
sc->irq_enable = false;
|
||||
sc->irq_enabled = false;
|
||||
}
|
||||
}
|
||||
dev_err(sc->dev, "success to set %s state, sleep 2s\n", pinctrl_name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue