Message ID | 1304510933-14488-1-git-send-email-leslyam@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Lesly, On Wed, May 04, 2011 at 05:38:53PM +0530, Lesly Arackal Manuel wrote: > From: Lesly A M <leslyam@ti.com> > > Fixing the error condition check in twl4030 remove script function. > Due to some typo in commit ID: 11a441ce82d6ffecfd39b324024de0cd630b36c1 Thanks, patch applied. Cheers, Samuel
diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c index 16422de..6fed964 100644 --- a/drivers/mfd/twl4030-power.c +++ b/drivers/mfd/twl4030-power.c @@ -484,9 +484,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) {