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: 241032 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 8DF3B2C00AD for ; Fri, 3 May 2013 01:49:48 +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 1UXvkl-0000wB-F6; Thu, 02 May 2013 15:49:03 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UXvkd-0003HI-6V; Thu, 02 May 2013 15:48:55 +0000 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UXvkS-0003EF-VT for linux-arm-kernel@lists.infradead.org; Thu, 02 May 2013 15:48:46 +0000 Received: by mail-wg0-f41.google.com with SMTP id y10so733135wgg.2 for ; Thu, 02 May 2013 08:48:22 -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=Jh5WAczUEwiYhubP2tNyck6LefOxXCgjMbCmSHsemWw=; b=aWkBeq0Ssu0pAtk72LEA+o5ZqkHd5qEprKasKeUzkqiqS0EbkXBrHWANG6TVZ55Exr Zp+AM7RZPCvUJzNVYrSRyM65SKUDLoY6v97BWqVqVOuHUM5jFhyWeFySCzxOBfl/6pKM GSI7mhH2Q136/pL4kl+OuvCuIFXvNpUtLCJ1zVcrSpTUyWIsuKor+9fqL6nlDsxST+MI 7uFA0mrYQSmQb34RRtnB+Z9bLJKgWaPEaA1TTI5xthynlZ+dbMIV/giaK/uUIusG/iwA hIHKcFJ/cI0ZzYOlvdH5VgdKJMfeOCulg3vx/SYNakaNHqpCuPnn57qFQXf5tDCmbbfq atHQ== 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 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: ALoCoQn7EOqCYYFC4ZJVDpMrFq1yijA+5imJbXzPyRhEy7gfAnFePiSXyRQGVCX9+/a11QOFWulJ X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130502_114845_264670_90BEA48A X-CRM114-Status: GOOD ( 13.17 ) 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: 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 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)