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:
xuwt2 2023-03-22 09:54:56 +08:00 • committed by Wentao Xu
commit aa344af5ee

View file

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