From patchwork Wed May 4 12:08:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lesly A M X-Patchwork-Id: 753462 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p44C945k008881 for ; Wed, 4 May 2011 12:09:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754527Ab1EDMJC (ORCPT ); Wed, 4 May 2011 08:09:02 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:36566 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754519Ab1EDMJB (ORCPT ); Wed, 4 May 2011 08:09:01 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id p44C8vCZ028074 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 4 May 2011 07:09:00 -0500 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id p44C8uaK026744; Wed, 4 May 2011 17:38:57 +0530 (IST) Received: from dbdp31.itg.ti.com (172.24.170.98) by DBDE70.ent.ti.com (172.24.170.148) with Microsoft SMTP Server id 8.3.106.1; Wed, 4 May 2011 17:38:56 +0530 Received: from ucmsshproxy.india.ext.ti.com (dbdp20.itg.ti.com [172.24.170.38]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with SMTP id p44C8sC9028931; Wed, 4 May 2011 17:38:55 +0530 (IST) Received: from localhost (unknown [10.24.244.61]) by ucmsshproxy.india.ext.ti.com (Postfix) with ESMTP id 1F3E7158002; Wed, 4 May 2011 17:38:54 +0530 (IST) From: Lesly Arackal Manuel To: CC: Lesly A M , Samuel Ortiz Subject: [PATCH 1/1] OMAP: twl4030-power: In remove script check the error condition after i2cwrite Date: Wed, 4 May 2011 17:38:53 +0530 Message-ID: <1304510933-14488-1-git-send-email-leslyam@ti.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 04 May 2011 12:09:04 +0000 (UTC) From: Lesly A M Fixing the error condition check in twl4030 remove script function. Due to some typo in commit ID: 11a441ce82d6ffecfd39b324024de0cd630b36c1 Signed-off-by: Lesly A M Cc: Samuel Ortiz --- drivers/mfd/twl4030-power.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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) {