Commit eac78a21017f5beefa75f88b966950cd89caac37
Committed by
Samuel Ortiz
1 parent
6523b148b4
Exists in
master
and in
4 other branches
mfd: Check twl4030-power remove script error condition after i2cwrite
Fixing the error condition check in twl4030 remove script function. Due to some typo in commit ID: 11a441ce82d6ffecfd39b324024de0cd630b36c1 Signed-off-by: Lesly A M <leslyam@ti.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/mfd/twl4030-power.c
... | ... | @@ -485,9 +485,9 @@ |
485 | 485 | return err; |
486 | 486 | } |
487 | 487 | if (flags & TWL4030_WAKEUP12_SCRIPT) { |
488 | - if (err) | |
489 | 488 | err = twl_i2c_write_u8(TWL4030_MODULE_PM_MASTER, END_OF_SCRIPT, |
490 | 489 | R_SEQ_ADD_S2A12); |
490 | + if (err) | |
491 | 491 | return err; |
492 | 492 | } |
493 | 493 | if (flags & TWL4030_WAKEUP3_SCRIPT) { |