Message ID | 1367509690-24022-3-git-send-email-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDA7X7F2WUEBBTEVRKGAKGQEJWOJM5I@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f200.google.com (mail-ye0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 53ECF238EC for <linaro@patches.linaro.org>; Thu, 2 May 2013 15:48:36 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r1sf1025192yen.3 for <linaro@patches.linaro.org>; Thu, 02 May 2013 08:48:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-beenthere:x-received:received-spf:x-received :x-forwarded-to:x-forwarded-for:delivered-to:x-received:received-spf :x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:mime-version:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type:content-transfer-encoding; bh=ZnnfMJmaNUvJp0ZS8pkCkvaOuurTOHNBnl2CLZjPsB4=; b=Dj7Ky/YGKB97QnEmqz+38AHOilWoUo4hrxom1zx+2ahT8LlEL5qr8NyT/z4kcBWNSQ tQzedND8F7Z7a0DQwf4GYlHNJvPmA8KJdLyEtAqgjF/M7L6XUJtzmW9CSBaFA9F5YEvo mRXGz2zxeuO0q6HF6a+TWgwSngqScLB+Nwx/DyN0U+Jj/IfpCKTFMDjjRKj4QaGSTMER 17+YwoIk5mRsyZag8wQ9TwRgiKuP2vMZFw6wkaTuIPRQPZVMvv37XsOhwOMzZaSyMrr7 JxmMRpqOTLxlIV1rv8gqGUBzTyT2UkwPDp80LJJjsQvmhwrv0OjHYpRp7biA6GGsaX0+ cvYg== X-Received: by 10.58.75.17 with SMTP id y17mr6591815vev.26.1367509708688; Thu, 02 May 2013 08:48:28 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.64.132 with SMTP id o4ls1376304qes.11.gmail; Thu, 02 May 2013 08:48:28 -0700 (PDT) X-Received: by 10.220.202.138 with SMTP id fe10mr2343903vcb.26.1367509708424; Thu, 02 May 2013 08:48:28 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id cy6si3136294vcb.86.2013.05.02.08.48.28 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 08:48:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id hx10so612560vcb.31 for <patchwork-forward@linaro.org>; Thu, 02 May 2013 08:48:28 -0700 (PDT) X-Received: by 10.220.89.198 with SMTP id f6mr2396014vcm.45.1367509708317; Thu, 02 May 2013 08:48:28 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp208392veb; Thu, 2 May 2013 08:48:27 -0700 (PDT) X-Received: by 10.180.92.229 with SMTP id cp5mr35392411wib.20.1367509706871; Thu, 02 May 2013 08:48:26 -0700 (PDT) Received: from mail-wg0-x22d.google.com (mail-wg0-x22d.google.com [2a00:1450:400c:c00::22d]) by mx.google.com with ESMTPS id pn7si2154108wjc.200.2013.05.02.08.48.26 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 08:48:26 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c00::22d is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c00::22d; Received: by mail-wg0-f45.google.com with SMTP id l18so745074wgh.12 for <patches@linaro.org>; Thu, 02 May 2013 08:48:26 -0700 (PDT) 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 <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 08:48:26 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, srinidhi.kasagar@stericsson.com, Lee Jones <lee.jones@linaro.org>, Samuel Ortiz <sameo@linux.intel.com> 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: ALoCoQnZUXGwM6sLhRxddrKDsBkPHYaq/qu2C8HUiYBev57cEHBjnlwDHVysvgXIMd+3g/5bvoHf X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post?hl=en-US>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?hl=en-US&topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/?hl=en-US> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe?hl=en-US>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit |
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);
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 <sameo@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/mfd/ab8500-gpadc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)