From patchwork Thu May 2 15:48:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 241034 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B62312C00B0 for ; Fri, 3 May 2013 01:51:44 +1000 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UXvl9-00011i-6J; Thu, 02 May 2013 15:49:27 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UXvkq-0003J6-SX; Thu, 02 May 2013 15:49:08 +0000 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UXvkY-0003EL-Ku for linux-arm-kernel@lists.infradead.org; Thu, 02 May 2013 15:48:51 +0000 Received: by mail-we0-f170.google.com with SMTP id z53so588758wey.15 for ; Thu, 02 May 2013 08:48:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=ZnnfMJmaNUvJp0ZS8pkCkvaOuurTOHNBnl2CLZjPsB4=; b=XCeEWIau1ynTal8n7REJqDHn2zOAYuzrgaab7C1AR2lJ5XULkeHJCssGNR2WUNKKMt eBwfFuQSC5kjJGlkttRSvx47dvKzaxHDkZGvqoznOGdo8CRvfXnGspUFzjloc6mhuU/B MhDn9/XhK0RBfqC9mVsq7Yt5jWFe2quqSxFDnWhtxNUcY1cbjJTYQZKURxYDinQ0pX3x bJClKyKkvDdWEMjcNb6rQ3ROvFTUuRDcRQmPchvNMWhFu55X5cM9rPlHbeNd7HOkV294 3y90yzVOMXsUINXlja3VfRZoWPiq7iTw6u85U/iT4PYPGDwSr1OVM+gdAAB/T+5/id/1 ta6A== X-Received: by 10.180.14.5 with SMTP id l5mr10218579wic.32.1367509706450; Thu, 02 May 2013 08:48:26 -0700 (PDT) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPSA id a9sm39857525wiv.0.2013.05.02.08.48.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 08:48:26 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] mfd: ab8500-gpadc: Suppress 'ignoring regulator_enable() return value' warning Date: Thu, 2 May 2013 16:48:08 +0100 Message-Id: <1367509690-24022-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1367509690-24022-1-git-send-email-lee.jones@linaro.org> References: <1367509690-24022-1-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQlkF3zTpje96uPEh30LCYY4EXky1BQ5FOUCh6nO7O894jtiy+I1ZpYOQCKu0AtiBzycq8JC X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130502_114850_927593_DFFE50E6 X-CRM114-Status: GOOD ( 11.79 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Samuel Ortiz , Lee Jones , linus.walleij@stericsson.com, arnd@arndb.de, srinidhi.kasagar@stericsson.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org drivers/mfd/ab8500-gpadc.c: In function ‘ab8500_gpadc_resume’: drivers/mfd/ab8500-gpadc.c:911:18: warning: ignoring return value of ‘regulator_enable’, declared with attribute warn_unused_result [-Wunused-result] Cc: Samuel Ortiz Signed-off-by: Lee Jones Acked-by: Linus Walleij --- drivers/mfd/ab8500-gpadc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/ab8500-gpadc.c b/drivers/mfd/ab8500-gpadc.c index 5e65b28..7278e53 100644 --- a/drivers/mfd/ab8500-gpadc.c +++ b/drivers/mfd/ab8500-gpadc.c @@ -907,8 +907,11 @@ static int ab8500_gpadc_suspend(struct device *dev) static int ab8500_gpadc_resume(struct device *dev) { struct ab8500_gpadc *gpadc = dev_get_drvdata(dev); + int ret; - regulator_enable(gpadc->regu); + ret = regulator_enable(gpadc->regu); + if (ret < 0) + return ret; pm_runtime_mark_last_busy(gpadc->dev); pm_runtime_put_autosuspend(gpadc->dev);