Message ID | 20231010151709.4104747-4-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp278459vqb; Tue, 10 Oct 2023 08:17:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXRLM5sAdisZTiveu7vaiQmBnEkJJwl5X4GO+adT/BtPjRvrdZj//NYr9QlXjBWhr0QVTf X-Received: by 2002:a05:6a20:a104:b0:161:2cf2:75ec with SMTP id q4-20020a056a20a10400b001612cf275ecmr22688291pzk.49.1696951064740; Tue, 10 Oct 2023 08:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696951064; cv=none; d=google.com; s=arc-20160816; b=GYWWZSspGCm5ASRfCu4nNBQCor3UPbc9IAXdCHrLaeo38to+6OqPOAvtF5ucd1opMB MBkmwmkrK3CngCfq2rWA8rVzmqIJLF+Yk2kfferJU/OuWkNWhgdo7tj0p6atHPFN822v 4Cgxys+2b7Kt7Hd693eWew6GlV8pGWDxMnuvY2HrVwAJHSU5AsA9kRN/GJQhUnXWJo2G noWDqNDt3b+DNRfexGRsBKeVsfgUzBeRmA7JgcWnbuH3vdIrN59G8HHhd6+AOG1qJZdk 1gWHHsDgHtXgN111TlYbwefrMp81S/85i9oexlQYmlin0+8sckfBZdnS2XNQ2sZBVr+3 ckgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+dkRlejyTcahjdPzQrenk/TdsIZLs1zSdZv153PSeFs=; fh=Pmv/3wCd/vMMkz6ztZZNrSYr82TrxG1l8ka93ZTHWP8=; b=ZBadOJwITHBfs0q4NS9/RUw+hXTm0EL9BanLI7Ig/aiSG1PTMZQUyYlwBK0+EHKpzt O/S/dRaiWq8xOgONbOYnnNYCwCEr4Ihsux8CzVp8StqLmthpeFlmhu9HUzlk1kmD54ps yp3M5oR152DkwqfIY8ct4wNQfVYFRsc8X9dHyZTvYK8M/gZc7LJ5YDAAkokbnYNNw/eP gBh/XUksN/Ouy9cI7mh2h863vmlNfiEoDI25dY+FjpHJKoJ9qul5P2E0x87n9Us4Qt0y a1ENtdSXxAGIftMmvNVfcf98m5M92d9b2JvZa4/wEO6h8geuVRcrxaIkvvlFM2HuIQqm YfNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=csOEtFfh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id cg5-20020a056a00290500b00690f22edc20si9749254pfb.333.2023.10.10.08.17.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 08:17:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=csOEtFfh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B376680CBDFC; Tue, 10 Oct 2023 08:17:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232587AbjJJPRU (ORCPT <rfc822;rua109.linux@gmail.com> + 20 others); Tue, 10 Oct 2023 11:17:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232670AbjJJPRR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 10 Oct 2023 11:17:17 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F7A8C9; Tue, 10 Oct 2023 08:17:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696951036; x=1728487036; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cfi2ScUuQ38Rjpas5/iU2szLV7W2WROp/dyzeK87y4E=; b=csOEtFfhoWAPmG3pgKhLABa0dAjecUwK8QWP7LbERrL+bidKI7hA4YgE tEgyBc3Y0xpSKND4DcLlz/tJpdqDxxIdRsXuMX7JvqpjPGOLqh2FKfsPB rUVAe+mP4bzDa6b9jQdSAi4nVdSVZO4iCXOeoD4ZckSIJJMgWiSMaN9Be KxXro7+IaF3U3CwE7P/pr2skxcpF8LMaA0QdYwIB3z1YYJzF7tN77gVB4 GJvqREEGfacXijwQPNM+JUjU6UiYfTei/nWpbaGUUTUPJrDgOPWfz01ff cOsKtPmVq1a5Wlyo069zQIa4vhOzOFAw5wY/GxLn1StgvAEmiGnNoWYhi Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="363771593" X-IronPort-AV: E=Sophos;i="6.03,213,1694761200"; d="scan'208";a="363771593" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2023 08:17:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="823812776" X-IronPort-AV: E=Sophos;i="6.03,213,1694761200"; d="scan'208";a="823812776" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 10 Oct 2023 08:17:11 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 484EE6DA; Tue, 10 Oct 2023 18:17:10 +0300 (EEST) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Dipen Patel <dipenp@nvidia.com>, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, timestamp@lists.linux.dev, linux-tegra@vger.kernel.org Cc: Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <brgl@bgdev.pl>, Andy Shevchenko <andy@kernel.org>, Thierry Reding <thierry.reding@gmail.com>, Jonathan Hunter <jonathanh@nvidia.com> Subject: [PATCH v1 3/4] hte: tegra194: Remove redundant dev_err() Date: Tue, 10 Oct 2023 18:17:08 +0300 Message-Id: <20231010151709.4104747-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20231010151709.4104747-1-andriy.shevchenko@linux.intel.com> References: <20231010151709.4104747-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 10 Oct 2023 08:17:39 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779382160014506660 X-GMAIL-MSGID: 1779382160014506660 |
Series | hte: Improve GPIO handling and other cleanups | |
Commit Message
Andy Shevchenko
Oct. 10, 2023, 3:17 p.m. UTC
There is no need to call the dev_err() function directly to print a custom
message when handling an error from platform_get_irq() function as it is
going to display an appropriate error message in case of a failure.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/hte/hte-tegra194.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Comments
On 10/10/23 8:17 AM, Andy Shevchenko wrote: > There is no need to call the dev_err() function directly to print a custom > message when handling an error from platform_get_irq() function as it is > going to display an appropriate error message in case of a failure. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > --- > drivers/hte/hte-tegra194.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/hte/hte-tegra194.c b/drivers/hte/hte-tegra194.c > index 339ff5921ec8..30ef1750a9fa 100644 > --- a/drivers/hte/hte-tegra194.c > +++ b/drivers/hte/hte-tegra194.c > @@ -731,10 +731,8 @@ static int tegra_hte_probe(struct platform_device *pdev) > return -ENOMEM; > > ret = platform_get_irq(pdev, 0); > - if (ret < 0) { > - dev_err_probe(dev, ret, "failed to get irq\n"); > + if (ret < 0) > return ret; > - } > hte_dev->hte_irq = ret; > ret = devm_request_irq(dev, hte_dev->hte_irq, tegra_hte_isr, 0, > dev_name(dev), hte_dev); Reviewed-by: Dipen Patel <dipenp@nvidia.com>
diff --git a/drivers/hte/hte-tegra194.c b/drivers/hte/hte-tegra194.c index 339ff5921ec8..30ef1750a9fa 100644 --- a/drivers/hte/hte-tegra194.c +++ b/drivers/hte/hte-tegra194.c @@ -731,10 +731,8 @@ static int tegra_hte_probe(struct platform_device *pdev) return -ENOMEM; ret = platform_get_irq(pdev, 0); - if (ret < 0) { - dev_err_probe(dev, ret, "failed to get irq\n"); + if (ret < 0) return ret; - } hte_dev->hte_irq = ret; ret = devm_request_irq(dev, hte_dev->hte_irq, tegra_hte_isr, 0, dev_name(dev), hte_dev);