From patchwork Fri Dec 2 15:43:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 9458827 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6DD7960756 for ; Fri, 2 Dec 2016 15:44:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62E352855D for ; Fri, 2 Dec 2016 15:44:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 57CEF2856F; Fri, 2 Dec 2016 15:44:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66EC82855D for ; Fri, 2 Dec 2016 15:44:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761608AbcLBPog (ORCPT ); Fri, 2 Dec 2016 10:44:36 -0500 Received: from 6.mo1.mail-out.ovh.net ([46.105.43.205]:51567 "EHLO 6.mo1.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761596AbcLBPof (ORCPT ); Fri, 2 Dec 2016 10:44:35 -0500 X-Greylist: delayed 54313 seconds by postgrey-1.27 at vger.kernel.org; Fri, 02 Dec 2016 10:44:35 EST Received: from player726.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo1.mail-out.ovh.net (Postfix) with ESMTP id BBB1221176 for ; Fri, 2 Dec 2016 16:44:33 +0100 (CET) Received: from w540.lan (93-34-114-119.ip49.fastwebnet.it [93.34.114.119]) (Authenticated sender: jacopo@jmondi.org) by player726.ha.ovh.net (Postfix) with ESMTPSA id 7342D2A008A; Fri, 2 Dec 2016 16:44:21 +0100 (CET) From: Jacopo Mondi To: magnus.damm@gmail.com, geert+renesas@glider.be Cc: linux-renesas-soc@vger.kernel.org, Jacopo Mondi Subject: [RFC 1/3] gpio-rz: Port to v3.18 Date: Fri, 2 Dec 2016 16:43:52 +0100 Message-Id: <1480693434-9415-2-git-send-email-jacopo@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480693434-9415-1-git-send-email-jacopo@jmondi.org> References: <1480693434-9415-1-git-send-email-jacopo@jmondi.org> X-Ovh-Tracer-Id: 10870000653106344783 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeelfedrgeefgdefjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecu Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix invalid return value in gpio remove function Signed-off-by: Jacopo Mondi --- drivers/gpio/gpio-rz.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-rz.c b/drivers/gpio/gpio-rz.c index a933dab..cb8f785 100644 --- a/drivers/gpio/gpio-rz.c +++ b/drivers/gpio/gpio-rz.c @@ -175,7 +175,8 @@ static int rz_gpio_remove(struct platform_device *pdev) { struct rz_gpio_priv *p = platform_get_drvdata(pdev); - return gpiochip_remove(&p->gpio_chip); + gpiochip_remove(&p->gpio_chip); + return 0; } static const struct of_device_id rz_gpio_dt_ids[] = {