提交 eac78a21 编写于 作者: L Lesly A M 提交者: Samuel Ortiz

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: 11a441ceSigned-off-by: NLesly A M <leslyam@ti.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 6523b148
...@@ -485,9 +485,9 @@ int twl4030_remove_script(u8 flags) ...@@ -485,9 +485,9 @@ int twl4030_remove_script(u8 flags)
return err; return err;
} }
if (flags & TWL4030_WAKEUP12_SCRIPT) { if (flags & TWL4030_WAKEUP12_SCRIPT) {
if (err)
err = twl_i2c_write_u8(TWL4030_MODULE_PM_MASTER, END_OF_SCRIPT, err = twl_i2c_write_u8(TWL4030_MODULE_PM_MASTER, END_OF_SCRIPT,
R_SEQ_ADD_S2A12); R_SEQ_ADD_S2A12);
if (err)
return err; return err;
} }
if (flags & TWL4030_WAKEUP3_SCRIPT) { if (flags & TWL4030_WAKEUP3_SCRIPT) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册