Skip to content

Commit

Permalink
mfd: Check twl4030-power remove script error condition after i2cwrite
Browse files Browse the repository at this point in the history
Fixing the error condition check in twl4030 remove script function.
Due to some typo in commit ID: 11a441c

Signed-off-by: Lesly A M <leslyam@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Lesly A M authored and Samuel Ortiz committed May 26, 2011
1 parent 6523b14 commit eac78a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/twl4030-power.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,9 @@ int twl4030_remove_script(u8 flags)
return err;
}
if (flags & TWL4030_WAKEUP12_SCRIPT) {
if (err)
err = twl_i2c_write_u8(TWL4030_MODULE_PM_MASTER, END_OF_SCRIPT,
R_SEQ_ADD_S2A12);
if (err)
return err;
}
if (flags & TWL4030_WAKEUP3_SCRIPT) {
Expand Down

0 comments on commit eac78a2

Please sign in to comment.