From patchwork Mon Jan 27 06:45:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 23736 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f198.google.com (mail-yk0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2303A2130F for ; Mon, 27 Jan 2014 06:49:49 +0000 (UTC) Received: by mail-yk0-f198.google.com with SMTP id 131sf27177494ykp.1 for ; Sun, 26 Jan 2014 22:49:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=z7Q4EPbKESZuvo98sJy4Fg99hk+1W2ptFfZzaKZo18w=; b=bONyJT43sy6Z+L57GTJEm5wtuqe3Fanv6s8ffvqFolOhRK5khknI97xjcepQmNiQqe ZL5wFDpEdxDQSlycgVSeIeqZG0CxRvfixcTnTVzq4JFwKGGn+XMlasA9nMqCE3XjHC49 AENrZ7SfjPjBsoQl2w/GTAG7Uv2FxiPayu5CjmQUA3gVtl900kUIz7hNiOVwGvAE+XEx 2HrTYw1IIvdUCfMRm8wycRuCAA2R3LV0StmDux/XFaHxR/tKcQ0g3gWFt+epLXn1WT+I Y0Ncaf1zmJQgBKkouoDhuRu+z/C5kPomduSY4FbP5WrT9woOj14/D9fmWYTqXtWw3d9T iAug== X-Gm-Message-State: ALoCoQnmR22opxFFR9d1PGaPaPUh04wWhVeK8hn7cyxZSuxUjry58jZrlbyRVA4yg6tu5HaHlc10 X-Received: by 10.52.229.41 with SMTP id sn9mr1533850vdc.6.1390805388285; Sun, 26 Jan 2014 22:49:48 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.50.5 with SMTP id r5ls1492008qga.22.gmail; Sun, 26 Jan 2014 22:49:48 -0800 (PST) X-Received: by 10.52.246.133 with SMTP id xw5mr545960vdc.32.1390805388202; Sun, 26 Jan 2014 22:49:48 -0800 (PST) Received: from mail-vb0-f52.google.com (mail-vb0-f52.google.com [209.85.212.52]) by mx.google.com with ESMTPS id or7si4682820vcb.61.2014.01.26.22.49.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 Jan 2014 22:49:48 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.52 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.52; Received: by mail-vb0-f52.google.com with SMTP id p14so3059573vbm.25 for ; Sun, 26 Jan 2014 22:49:48 -0800 (PST) X-Received: by 10.52.30.77 with SMTP id q13mr2465922vdh.18.1390805387853; Sun, 26 Jan 2014 22:49:47 -0800 (PST) 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.220.174.196 with SMTP id u4csp108384vcz; Sun, 26 Jan 2014 22:49:47 -0800 (PST) X-Received: by 10.66.16.162 with SMTP id h2mr1783059pad.129.1390805387101; Sun, 26 Jan 2014 22:49:47 -0800 (PST) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by mx.google.com with ESMTPS id x3si7760399pbk.53.2014.01.26.22.49.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 Jan 2014 22:49:47 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.181 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.181; Received: by mail-pd0-f181.google.com with SMTP id y10so5364392pdj.12 for ; Sun, 26 Jan 2014 22:49:46 -0800 (PST) X-Received: by 10.67.5.233 with SMTP id cp9mr1216797pad.147.1390805385999; Sun, 26 Jan 2014 22:49:45 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id xu8sm77624031pab.0.2014.01.26.22.49.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 Jan 2014 22:49:45 -0800 (PST) From: Sachin Kamat To: linux-gpio@vger.kernel.org Cc: linus.walleij@linaro.org, gnurou@gmail.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] gpio: gpiolib-of: Use PTR_ERR_OR_ZERO Date: Mon, 27 Jan 2014 12:15:08 +0530 Message-Id: <1390805108-20766-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.52 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: , PTR_RET is deprecated. Use PTR_ERR_OR_ZERO instead. While at it also include missing err.h header. Signed-off-by: Sachin Kamat --- drivers/gpio/gpiolib-of.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index e0a98f581f58..2024d45e5503 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -12,6 +12,7 @@ */ #include +#include #include #include #include @@ -90,7 +91,7 @@ struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np, of_node_put(gg_data.gpiospec.np); pr_debug("%s exited with status %d\n", __func__, - PTR_RET(gg_data.out_gpio)); + PTR_ERR_OR_ZERO(gg_data.out_gpio)); return gg_data.out_gpio; } EXPORT_SYMBOL(of_get_named_gpiod_flags);