Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6555661ybi; Mon, 8 Jul 2019 05:00:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNGToc1fbJizziTp+OpUhnVM6G0uGAInZj3FOebO+y6ZfGnqp4UQVEi2VKoWJmk9tbY1F+ X-Received: by 2002:a17:90b:d8a:: with SMTP id bg10mr25064137pjb.92.1562587223287; Mon, 08 Jul 2019 05:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562587223; cv=none; d=google.com; s=arc-20160816; b=Cq1u5h1CGb4QaTJccUwrbkviNTzndCIsyTF8tPGlXmafaqpv3agotVghWCmZs6v7WU E/Kk69WJCdvUKrJMyHTcE2JVtHj4RsyLMmjLnSG7rArVV+AERtiAHoAZOqDA1NixRMVs Tf2slOvxDxmeywlMpUIFp9zQteupTgCuyrX0MM+UtQGMsRMz5gDx5wJ2mAp5aTNwuibp muxXx2jQEkPKYKaJutvbSGS7hRNa8pZYHt39QjMo84mNJot8cVifAGHD4sbfiQewygiu M72hfAM/lK28ik5JOrjhCt0XJAVt8tdQuf8Zb+49DlqgPAK/COsqkqy/5MZJjghtihLW qLDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=0vvrbq4sO8mI+45KfLyz6qhcBRue/QwX9tsHP/CDc7o=; b=dLyej3y5LsYWd8INZq0KDYMDtnx17QL1A02IuOWaoQp9Cb3urHnshFrm1BGiFUiWL9 kY9q5w8rUTK5xl5uUNUXGmg6ml+DbmNjDg6PjIrqTNXD6Nl/n9uKxprxXRLljKxMLtsr 2HsaTxNOCEmG3gYQ7W20oDGZQ9sxsgwxs0t+tuRRW+qXGdd/Dj/OrR8IGxQL3PFQClNj /pfBMwzekVrhKfBS97Hu0udVPwN/lAk2JoSP6r/J3XpZbnbXYvvxXXbwzcxty8UDIaGu QXpNX0ikL1v5pigtLGNIZ324ptcw/8bwjK8nWVM+aaPpFP+p3FCEW5YnHcGWpTyhE1hA YT/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JR3BZbIm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si17364004pli.151.2019.07.08.05.00.08; Mon, 08 Jul 2019 05:00:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JR3BZbIm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728325AbfGHIsn (ORCPT + 99 others); Mon, 8 Jul 2019 04:48:43 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:43784 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727376AbfGHIsn (ORCPT ); Mon, 8 Jul 2019 04:48:43 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x688mfSc105328; Mon, 8 Jul 2019 03:48:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1562575721; bh=0vvrbq4sO8mI+45KfLyz6qhcBRue/QwX9tsHP/CDc7o=; h=From:To:CC:Subject:Date; b=JR3BZbImwQ5P/aIZK4o7eVKa/2secReGTOj/RZR4AakVNcnXSY4oP4wU6Vdngd8UT EuGy7rzzQ2AOPj+dcYb/Ars00Ch4SQXRST3xGJr9uZDJguJIVzo6dGECi3VRfvpv8L nfgYZUu+skpWWWhEjDkM9+gIwq0nb9zUyctiw35Y= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x688medG122916 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 8 Jul 2019 03:48:40 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 8 Jul 2019 03:48:40 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 8 Jul 2019 03:48:40 -0500 Received: from a0393675ula.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x688mc7P061716; Mon, 8 Jul 2019 03:48:39 -0500 From: Keerthy To: , CC: , , , Subject: [PATCH] gpio: davinci: silence error prints in case of EPROBE_DEFER Date: Mon, 8 Jul 2019 14:19:04 +0530 Message-ID: <20190708084904.18607-1-j-keerthy@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Silence error prints in case of EPROBE_DEFER. This avoids multiple/duplicate defer prints during boot. Signed-off-by: Keerthy --- drivers/gpio/gpio-davinci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index fc494a84a29d..e0b025689625 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c @@ -238,8 +238,9 @@ static int davinci_gpio_probe(struct platform_device *pdev) for (i = 0; i < nirq; i++) { chips->irqs[i] = platform_get_irq(pdev, i); if (chips->irqs[i] < 0) { - dev_info(dev, "IRQ not populated, err = %d\n", - chips->irqs[i]); + if (chips->irqs[i] != -EPROBE_DEFER) + dev_info(dev, "IRQ not populated, err = %d\n", + chips->irqs[i]); return chips->irqs[i]; } } -- 2.17.1