From patchwork Thu May 2 15:48:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 16594 Return-Path: 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 109F0238EC for ; Thu, 2 May 2013 15:48:32 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r1sf1025086yen.3 for ; Thu, 02 May 2013 08:48:24 -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=Jh5WAczUEwiYhubP2tNyck6LefOxXCgjMbCmSHsemWw=; b=PI1/ZWpgrePn6B9xfYELEpYY6xhfNn2Z5E6yzlLDXFLYVjXuMXpazEwIk2a9O421sM IzovORotQS3x0WBL9yjI2FvKbYoczzlGKuZfO2TK0Tv7OZlAXxiC8buoHuQrtw8sVz9D t7UAFsjmEO2YIDSiD0yoZK/rbMWkAwFt4MMzqiSNq7KgP8AanLIW7a/v6q3KzeXs3T3S 0ogVUcBPGWlOP8WAswN2y6A9XRmdETa0cT89tcwsBaLn4yRR/XoO32edTJLpId20RHSi 0e5AgRsNoBX/BPUuW1DuTwJpU2nVoRdI5AzwGOB4Amxyo8XUR5TrB9hqNGEjV4u4lBlF fLSQ== X-Received: by 10.58.64.167 with SMTP id p7mr6640270ves.16.1367509704273; Thu, 02 May 2013 08:48:24 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.133.4 with SMTP id oy4ls1247868qeb.73.gmail; Thu, 02 May 2013 08:48:24 -0700 (PDT) X-Received: by 10.221.9.9 with SMTP id ou9mr2372729vcb.15.1367509704063; Thu, 02 May 2013 08:48:24 -0700 (PDT) Received: from mail-vb0-x22e.google.com (mail-vb0-x22e.google.com [2607:f8b0:400c:c02::22e]) by mx.google.com with ESMTPS id j11si3150544vcw.51.2013.05.02.08.48.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 08:48:24 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22e is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22e; Received: by mail-vb0-f46.google.com with SMTP id 10so574143vbe.19 for ; Thu, 02 May 2013 08:48:23 -0700 (PDT) X-Received: by 10.220.169.78 with SMTP id x14mr2374707vcy.41.1367509703924; Thu, 02 May 2013 08:48:23 -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 nf2csp208389veb; Thu, 2 May 2013 08:48:23 -0700 (PDT) X-Received: by 10.180.183.210 with SMTP id eo18mr35754150wic.17.1367509702476; Thu, 02 May 2013 08:48:22 -0700 (PDT) Received: from mail-wg0-x22b.google.com (mail-wg0-x22b.google.com [2a00:1450:400c:c00::22b]) by mx.google.com with ESMTPS id hs1si2176936wib.3.2013.05.02.08.48.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 08:48:22 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c00::22b is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c00::22b; Received: by mail-wg0-f43.google.com with SMTP id c11so715949wgh.34 for ; Thu, 02 May 2013 08:48:22 -0700 (PDT) X-Received: by 10.194.143.50 with SMTP id sb18mr8817415wjb.44.1367509701989; Thu, 02 May 2013 08:48:21 -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.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 08:48:21 -0700 (PDT) From: Lee Jones 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 Subject: [PATCH 1/4] ARM: ux500: Rid ignored return value of regulator_enable() compiler warning Date: Thu, 2 May 2013 16:48:07 +0100 Message-Id: <1367509690-24022-2-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: ALoCoQm2+tZjz8Sw1DWI5wZfPUC1TrQPxWzgCI58weAQpkEiY9EOg9uzzEOdd9CYH5o/081vhEMs X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22e 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: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , arch/arm/mach-ux500/board-mop500.c: In function ‘mop500_prox_activate’: arch/arm/mach-ux500/board-mop500.c:406:18: warning: ignoring return value of ‘regulator_enable’, declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index a15dd6b..9bc762a 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c @@ -403,8 +403,8 @@ static int mop500_prox_activate(struct device *dev) "no regulator\n"); return PTR_ERR(prox_regulator); } - regulator_enable(prox_regulator); - return 0; + + return regulator_enable(prox_regulator); } static void mop500_prox_deactivate(struct device *dev)