aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/twl4030-power.c
diff options
context:
space:
mode:
authorLesly A M <leslyam@ti.com>2011-05-04 08:08:53 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2011-05-26 13:45:41 -0400
commiteac78a21017f5beefa75f88b966950cd89caac37 (patch)
tree9855f80d634fe4ce1b29f05c8f94d7fcede9da6d /drivers/mfd/twl4030-power.c
parent6523b148b44be38d89c2ee9865d34da30d9f5f1c (diff)
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>
Diffstat (limited to 'drivers/mfd/twl4030-power.c')
-rw-r--r--drivers/mfd/twl4030-power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c
index 8162e435c9ff..a764676f0922 100644
--- a/drivers/mfd/twl4030-power.c
+++ b/drivers/mfd/twl4030-power.c
@@ -485,9 +485,9 @@ int twl4030_remove_script(u8 flags)
485 return err; 485 return err;
486 } 486 }
487 if (flags & TWL4030_WAKEUP12_SCRIPT) { 487 if (flags & TWL4030_WAKEUP12_SCRIPT) {
488 if (err)
489 err = twl_i2c_write_u8(TWL4030_MODULE_PM_MASTER, END_OF_SCRIPT, 488 err = twl_i2c_write_u8(TWL4030_MODULE_PM_MASTER, END_OF_SCRIPT,
490 R_SEQ_ADD_S2A12); 489 R_SEQ_ADD_S2A12);
490 if (err)
491 return err; 491 return err;
492 } 492 }
493 if (flags & TWL4030_WAKEUP3_SCRIPT) { 493 if (flags & TWL4030_WAKEUP3_SCRIPT) {