Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: Correct the twl4030-power warning print during script loading

Correcting the if condition check for printing the warning,
if wakeup script is not updated before updating the sleep script.

Since the flag 'order' is set to '1' while updating the wakeup script
for P1P2, the condition checking for printing the warning should be
if(!order) (ie: print the warning if wakeup script is not updated before
updating the sleep script)

Signed-off-by: Lesly A M <leslyam@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: David Derrick <dderrick@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Lesly A M and committed by
Samuel Ortiz
1f968ff6 a5156f1a

+1 -1
+1 -1
drivers/mfd/twl4030-power.c
··· 448 448 goto out; 449 449 } 450 450 if (tscript->flags & TWL4030_SLEEP_SCRIPT) { 451 - if (order) 451 + if (!order) 452 452 pr_warning("TWL4030: Bad order of scripts (sleep "\ 453 453 "script before wakeup) Leads to boot"\ 454 454 "failure on some boards\n");