From patchwork Thu May 2 15:48:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 16597 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gg0-f197.google.com (mail-gg0-f197.google.com [209.85.161.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0BFE0238EC for ; Thu, 2 May 2013 15:48:56 +0000 (UTC) Received: by mail-gg0-f197.google.com with SMTP id w6sf1006711ggk.4 for ; Thu, 02 May 2013 08:48:48 -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=eVbLk4G6whd1jgODQovMPqB05n3pwZbtHdvdSGojECc=; b=QbUrJcU4Czj8nXbhH70Oue1YfaIM/2xRouQ0OzTgF2jbZt5UAAIGJs1pS0jal7lHrA t0KktBgHHVLomFxbt1iW7eZMtHNPrcyfHovItw1lodW3c48WGbDkHKN3LTSi2yeTq3pA VrQbrA6OwjnZ8tPpKVKlECJAvNvyuz/KTMuITrClZbBz1XYjOVeVMchgkmHYWib6pgMc MJ8zrtpD0mdfwRbPESg2BY87T29xuaM6Cjo/ElSmslE6XEkXakSrSFcvYJacEp6/vFl4 c2SNyxbTJhzzIvKY/V3s91tVpsl+Lpxo5+lTBzDh7KpE6eTkZRP+TIR1rIoYZWuWlnRg Kmnw== X-Received: by 10.58.243.138 with SMTP id wy10mr6576050vec.38.1367509728288; Thu, 02 May 2013 08:48:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.0.239 with SMTP id 15ls1364113qeh.60.gmail; Thu, 02 May 2013 08:48:48 -0700 (PDT) X-Received: by 10.52.93.179 with SMTP id cv19mr2066780vdb.20.1367509728081; Thu, 02 May 2013 08:48:48 -0700 (PDT) Received: from mail-vb0-x229.google.com (mail-vb0-x229.google.com [2607:f8b0:400c:c02::229]) by mx.google.com with ESMTPS id ij9si3157803vdb.56.2013.05.02.08.48.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 08:48:48 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::229 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::229; Received: by mail-vb0-f41.google.com with SMTP id x19so579942vbf.14 for ; Thu, 02 May 2013 08:48:48 -0700 (PDT) X-Received: by 10.52.69.109 with SMTP id d13mr2001961vdu.75.1367509727967; Thu, 02 May 2013 08:48:47 -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 nf2csp208403veb; Thu, 2 May 2013 08:48:47 -0700 (PDT) X-Received: by 10.194.47.176 with SMTP id e16mr8762014wjn.46.1367509726696; Thu, 02 May 2013 08:48:46 -0700 (PDT) Received: from mail-we0-x22e.google.com (mail-we0-x22e.google.com [2a00:1450:400c:c03::22e]) by mx.google.com with ESMTPS id i3si6281532wiz.36.2013.05.02.08.48.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 08:48:46 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::22e is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c03::22e; Received: by mail-we0-f174.google.com with SMTP id z2so594663wey.5 for ; Thu, 02 May 2013 08:48:46 -0700 (PDT) X-Received: by 10.180.94.196 with SMTP id de4mr8571656wib.23.1367509726257; Thu, 02 May 2013 08:48:46 -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.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 May 2013 08:48:45 -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 , Greg Kroah-Hartman , devel@driverdev.osuosl.org Subject: [PATCH 4/4] =?UTF-8?q?staging:=20ste=5Frmi4:=20Suppress=20'ignoring?= =?UTF-8?q?=20return=20value=20of=20=E2=80=98regulator=5Fenable()'=20warning?= Date: Thu, 2 May 2013 16:48:10 +0100 Message-Id: <1367509690-24022-5-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: ALoCoQlkwtRfblR/jfaL2zcFk/ggM0NbP0UW0IAAFv+95xGug82K02jrMjaeU36V3AL9pP2Dhkf2 X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::229 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: , drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c: In function ‘synaptics_rmi4_resume’: drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c:1090:18: warning: ignoring return value of ‘regulator_enable’, declared with attribute warn_unused_result [-Wunused-result Cc: Greg Kroah-Hartman Cc: devel@driverdev.osuosl.org Signed-off-by: Lee Jones --- drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c b/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c index fe667dd..c4d013d 100644 --- a/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c +++ b/drivers/staging/ste_rmi4/synaptics_i2c_rmi4.c @@ -1087,7 +1087,9 @@ static int synaptics_rmi4_resume(struct device *dev) unsigned char intr_status; struct synaptics_rmi4_data *rmi4_data = dev_get_drvdata(dev); - regulator_enable(rmi4_data->regulator); + retval = regulator_enable(rmi4_data->regulator); + if (retval < 0) + return retval; enable_irq(rmi4_data->i2c_client->irq); rmi4_data->touch_stopped = false;