From patchwork Thu Jul 20 09:42:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 9854425 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 117E1602BA for ; Thu, 20 Jul 2017 09:44:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 043C02877B for ; Thu, 20 Jul 2017 09:44:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ECDE828789; Thu, 20 Jul 2017 09:44:50 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7FAA72877B for ; Thu, 20 Jul 2017 09:44:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pYyyT4Ypyq6CbrPwc3S6W39oF/lxSTX4bPBeVR0Bc0g=; b=LeC1UD6tBsEuCn 3ZCfp+gmXsfYsMXlY4ynFhgvjF8crNRvw9tQwIlkZsw0RxyUTMB+zmOlaBYJrIaSATwQOMtmHgJZ3 zbYNzUOOxwsHHAH9KXkhlPNT7zUf2goNIMTvHAbUVyco0vUS9IOx7KVraUWLhc58ZkkmqW4y/4eNK uK2xWZiJ6DRsKdFyTBz26Rkz6TPiYjgwRe+GMCouxDLHVrMmZoFzGEj1akbJWApA0UTe+6wI8XNX1 SlnlRH+F6Bh8youT9jNZcZd0tjreyBgNggGbPIdLQxiwt8RW9DIkUrarEbGrVZYfONY2v69shJCyE oIZo1CSylI+tBMFwXulg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dY80k-0003KH-Vz; Thu, 20 Jul 2017 09:44:47 +0000 Received: from fllnx209.ext.ti.com ([198.47.19.16]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dY7zU-0002JR-JQ for linux-arm-kernel@lists.infradead.org; Thu, 20 Jul 2017 09:43:32 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id v6K9gj9k001490; Thu, 20 Jul 2017 04:42:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1500543765; bh=OFlvFGnfrXhBfaqaETSr/kQ/1/3LqidzrPDloHRuA6U=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fzPgI7VSTsFjKvs5L6af38u4iFqDAK+K2VGvnZvYpqxcUw3OeVoGA/4Iav/jJOr1y +RTckecMlry6N8xw8fBDGxMU0OF1XbVt1OZUdnhpfL23AXJtQRzKQz64Ad/AxbkGlK GdDXn8MiyEnhC9aAgdNObGHksasGw9bamjvyDj6g= Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6K9ge58017866; Thu, 20 Jul 2017 04:42:40 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.294.0; Thu, 20 Jul 2017 04:42:39 -0500 Received: from ula0393675.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6K9gQAL020613; Thu, 20 Jul 2017 04:42:37 -0500 From: Keerthy To: Subject: [PATCH v2 2/3] gpio: davinci: Handle the return value of davinci_gpio_irq_setup function Date: Thu, 20 Jul 2017 15:12:17 +0530 Message-ID: <1500543738-9696-3-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1500543738-9696-1-git-send-email-j-keerthy@ti.com> References: <1500543738-9696-1-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170720_024328_834338_954504F4 X-CRM114-Status: UNSURE ( 7.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: j-keerthy@ti.com, nsekhar@ti.com, t-kristo@ti.com, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, fcooper@ti.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Currently davinci_gpio_irq_setup return value is ignored. Handle the return value appropriately. Signed-off-by: Keerthy --- drivers/gpio/gpio-davinci.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index 27499ec..d6fb1ce 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c @@ -237,7 +237,10 @@ static int davinci_gpio_probe(struct platform_device *pdev) goto err; platform_set_drvdata(pdev, chips); - davinci_gpio_irq_setup(pdev); + ret = davinci_gpio_irq_setup(pdev); + if (ret) + goto err; + return 0; err: