From patchwork Mon Jun 17 10:08:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Baltieri X-Patchwork-Id: 17948 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EA20923971 for ; Mon, 17 Jun 2013 10:08:22 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id f73sf3545587yha.2 for ; Mon, 17 Jun 2013 03:08:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :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; bh=mHlIWNv9obumwlV247cEJ0j+hf+739IaraS468JeRXY=; b=ADqZ0SD9H0kdQIqg04zJ7VxHML0XRh0DlK+Ugh8cmNuuRjAGVgBNOJU9Ox78yRzQ25 b82rc+UHqnBxoKdUGm1vCDOr5jDtXUlf8iCtkfVvCxaDjHcfPOqpXtJ/APCznyQVGeAd RIKdNR/hjdCOvOUnpGqbfn0n+YrecEVADewV7FXN4I6fY8MOm6D2or7M8A6ELCHwDkzS EjnUJuFt1AsjCnqdhQgA38Kqz1M8Y03Wu40NR4bej530yz+gv4GzYmBrYiPopSjMrLXK 4FIeqlk1b1gIxdPsV+eRiHxhvQvJcBh8KWVqeFi0+sLZN5tzCkFcLBZhIzGYzNK2Wgm3 8yxg== X-Received: by 10.52.91.16 with SMTP id ca16mr1564018vdb.8.1371463702399; Mon, 17 Jun 2013 03:08:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.26.100 with SMTP id k4ls1013827qeg.37.gmail; Mon, 17 Jun 2013 03:08:22 -0700 (PDT) X-Received: by 10.58.46.48 with SMTP id s16mr4293987vem.52.1371463702254; Mon, 17 Jun 2013 03:08:22 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id p8si3826755vdv.44.2013.06.17.03.08.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Jun 2013 03:08:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 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.180; Received: by mail-vc0-f180.google.com with SMTP id gf11so1811112vcb.39 for ; Mon, 17 Jun 2013 03:08:21 -0700 (PDT) X-Received: by 10.52.95.113 with SMTP id dj17mr31712vdb.82.1371463701926; Mon, 17 Jun 2013 03:08:21 -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.165.8 with SMTP id yu8csp28110veb; Mon, 17 Jun 2013 03:08:21 -0700 (PDT) X-Received: by 10.194.91.194 with SMTP id cg2mr7724015wjb.53.1371463700666; Mon, 17 Jun 2013 03:08:20 -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 v8si5165040wjz.4.2013.06.17.03.08.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Jun 2013 03:08:20 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c00::22d is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) client-ip=2a00:1450:400c:c00::22d; Received: by mail-wg0-f45.google.com with SMTP id j13so2217638wgh.12 for ; Mon, 17 Jun 2013 03:08:20 -0700 (PDT) X-Received: by 10.180.107.35 with SMTP id gz3mr4504459wib.0.1371463700038; Mon, 17 Jun 2013 03:08:20 -0700 (PDT) Received: from localhost ([2a01:2003:1:1e74:8e70:5aff:feac:ad8]) by mx.google.com with ESMTPSA id fb9sm20932860wid.2.2013.06.17.03.08.17 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 17 Jun 2013 03:08:19 -0700 (PDT) From: Fabio Baltieri To: Linus Walleij Cc: Lee Jones , Mark Brown , Grant Likely , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabio Baltieri Subject: [PATCH] spi: pl022: remove unused ret and pins_state variables Date: Mon, 17 Jun 2013 12:08:15 +0200 Message-Id: <1371463695-21252-1-git-send-email-fabio.baltieri@linaro.org> X-Mailer: git-send-email 1.8.2 X-Gm-Message-State: ALoCoQkXue6RpYvMMY61cnzmkhENfk+6MTgQUY4VH9gj4JUFcy/ZTLBqW11i4Gyd8YrKP80D+IxH X-Original-Sender: fabio.baltieri@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.180 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: , Removes the warnings: drivers/spi/spi-pl022.c: In function 'pl022_suspend_resources': drivers/spi/spi-pl022.c:2322:24: warning: unused variable 'pins_state' [-Wunused-variable] drivers/spi/spi-pl022.c:2321:6: warning: unused variable 'ret' [-Wunused-variable] drivers/spi/spi-pl022.c: In function 'pl022_resume_resources': drivers/spi/spi-pl022.c:2334:6: warning: unused variable 'ret' [-Wunused-variable] introduced in: f1c9cf0 spi: pl022: use pinctrl PM helpers Signed-off-by: Fabio Baltieri --- Hi Linus, this is just a quick build warning fixup patch found while playing with today's linux-next, should apply cleanly on pinctrl/for-next. Thanks, Fabio drivers/spi/spi-pl022.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 9652189..abef061 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -2318,9 +2318,6 @@ pl022_remove(struct amba_device *adev) */ static void pl022_suspend_resources(struct pl022 *pl022, bool runtime) { - int ret; - struct pinctrl_state *pins_state; - clk_disable(pl022->clk); if (runtime) @@ -2331,8 +2328,6 @@ static void pl022_suspend_resources(struct pl022 *pl022, bool runtime) static void pl022_resume_resources(struct pl022 *pl022, bool runtime) { - int ret; - /* First go to the default state */ pinctrl_pm_select_default_state(&pl022->adev->dev); if (!runtime)