From patchwork Fri May 3 11:15:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 241271 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 2BDBE2C009C for ; Fri, 3 May 2013 21:16:21 +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 1UYDyE-0000bw-SO; Fri, 03 May 2013 11:16:11 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UYDyC-0005Gs-BI; Fri, 03 May 2013 11:16:08 +0000 Received: from mail-we0-x22e.google.com ([2a00:1450:400c:c03::22e]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UYDy9-0005GN-6m for linux-arm-kernel@lists.infradead.org; Fri, 03 May 2013 11:16:06 +0000 Received: by mail-we0-f174.google.com with SMTP id z2so1202914wey.33 for ; Fri, 03 May 2013 04:15:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent:x-gm-message-state; bh=kPe6D6yhWeTwDyAjsBwSLQYucr3YHruO5D90THXuzr0=; b=lOdYWnftO/UHnV/E7Ck+RgELPsTlxbFfQJSN09G9S4eSiNDH5/JCy/jXtSTJOqWt5I WFZO0UfGKf7mWlv6aRtBuqjr8cM4L0/PAGwnKpIQ0mYyovxGaOC+BJDkF3s5YGbQRlPF ig5hFkF62DHK2w3t0oYfzlWwCQl1ipg9/44poURBQSTt2nagEXzPer8dbSXw0Sl92P+B YZ9C4eoLZ1PZAbCCqhfSXK1LYN4IyC6xbUXW/IKRydxx+3sTBXtZtEC0SRcPCuLi0QKh +XTRqYhuVRFty9F4c/cOmE561SYP8O5xJXLN6c6iqHFOtreWVXxw3Z387eK609QZ4UaM lpBA== X-Received: by 10.194.71.103 with SMTP id t7mr13200574wju.38.1367579741147; Fri, 03 May 2013 04:15:41 -0700 (PDT) Received: from gmail.com (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPSA id k5sm16371761wiy.5.2013.05.03.04.15.39 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 03 May 2013 04:15:39 -0700 (PDT) Date: Fri, 3 May 2013 12:15:37 +0100 From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4 v2] mfd: ab8500-gpadc: Suppress 'ignoring regulator_enable() return value' warning Message-ID: <20130503111537.GH24153@gmail.com> References: <1367509690-24022-1-git-send-email-lee.jones@linaro.org> <1367509690-24022-3-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1367509690-24022-3-git-send-email-lee.jones@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQmcxxu0AQ15aH0t+FsI/APk0QeMHL1mZnCuKWWcZ2yXJhHzGZe9iCCYgqAcyRrO5Qh7SiS5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130503_071605_425554_795BF8B7 X-CRM114-Status: GOOD ( 10.92 ) 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 , 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 diff --git a/drivers/mfd/ab8500-gpadc.c b/drivers/mfd/ab8500-gpadc.c index 5e65b28..13f7866 100644 --- a/drivers/mfd/ab8500-gpadc.c +++ b/drivers/mfd/ab8500-gpadc.c @@ -907,14 +907,17 @@ 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) + dev_err(dev, "Failed to enable vtvout LDO: %d\n", ret); pm_runtime_mark_last_busy(gpadc->dev); pm_runtime_put_autosuspend(gpadc->dev); mutex_unlock(&gpadc->ab8500_gpadc_lock); - return 0; + return ret; } static int ab8500_gpadc_probe(struct platform_device *pdev)