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:
1 parent
e144cc561d
commit
aa344af5ee
1 file changed
+2
-2
@@ -234,7 +234,7 @@ static int sc760x_enable_chip(struct sc760x_chip *sc, bool en)
|
|||||||
if (!sc->irq_enabled) {
|
if (!sc->irq_enabled) {
|
||||||
enable_irq_wake(sc->irq);
|
enable_irq_wake(sc->irq);
|
||||||
enable_irq(sc->irq);
|
enable_irq(sc->irq);
|
||||||
sc->irq_enable = true;
|
sc->irq_enabled = true;
|
||||||
}
|
}
|
||||||
ret = sc760x_init_device(sc);
|
ret = sc760x_init_device(sc);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
@@ -244,7 +244,7 @@ static int sc760x_enable_chip(struct sc760x_chip *sc, bool en)
|
|||||||
if (sc->irq_enabled) {
|
if (sc->irq_enabled) {
|
||||||
disable_irq_wake(sc->irq);
|
disable_irq_wake(sc->irq);
|
||||||
disable_irq(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);
|
dev_err(sc->dev, "success to set %s state, sleep 2s\n", pinctrl_name);
|
||||||
|
|||||||
Reference in new issue
Block a user