mfd: twl4030-power: warn anout P3 order, not P12
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 15 Apr 2014 23:36:24 +0000 (02:36 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 15 Apr 2014 23:36:24 +0000 (02:36 +0300)
drivers/mfd/twl4030-power.c

index d905f51..280c360 100644 (file)
@@ -441,12 +441,12 @@ static int __init load_twl4030_script(struct twl4030_script *tscript,
                err = twl4030_config_wakeup12_sequence(address);
                if (err)
                        goto out;
-               order = 1;
        }
        if (tscript->flags & TWL4030_WAKEUP3_SCRIPT) {
                err = twl4030_config_wakeup3_sequence(address);
                if (err)
                        goto out;
+               order = 1;
        }
        if (tscript->flags & TWL4030_SLEEP_SCRIPT) {
                if (!order)