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: 791545 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="fzPgI7VS"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xCpqw1yYfz9rxl for ; Thu, 20 Jul 2017 19:43:40 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965005AbdGTJnj (ORCPT ); Thu, 20 Jul 2017 05:43:39 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:56411 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964987AbdGTJnh (ORCPT ); Thu, 20 Jul 2017 05:43:37 -0400 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: CC: , , , , , , 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 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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: