Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eac78a21 authored by Lesly A M's avatar Lesly A M Committed by Samuel Ortiz
Browse files

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: 11a441ce

Signed-off-by: default avatarLesly A M <leslyam@ti.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 6523b148
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {