Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1621320ybb; Thu, 2 Apr 2020 04:27:35 -0700 (PDT) X-Google-Smtp-Source: APiQypKlDE9VJnxlpJ+sHxxKgKHyGgXFLbhxr9vYC2JUYD+0MGgDfrW3V0tEQgryhbb0zsNNzRCA X-Received: by 2002:a9d:178a:: with SMTP id j10mr1892917otj.182.1585826855448; Thu, 02 Apr 2020 04:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585826855; cv=none; d=google.com; s=arc-20160816; b=pY9lrxloinz6TSTk/NorArjvTNIBuW0lufGwXEaS4YfKFH/oh9m6k/D/Ly1daC4T9M 205st6Wugd80B5zSnNRf4pauBvCdST31dpaINbRpb1UR7BWBBIgXLpe2pzLq3KZ45aeV E1BMDmu77GWIfZnEi3TDm5mJI3pBYHL1WC0nfNOAq1F6AC9SgFQtzAot7cufIsR3MqUM +9tNgkyUNbTR54xv4AdCvgSTrUbqDTknAGqZtuHsgfhBXX/Ubki2y16LN55cZnG7OETm U786ghpFrbi6sQ6JdqFvEXzTQ19T2exQkcKHPb19SeVWM4w4SnMLhzkY51amn74H44DV 9lTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ZPeLhdFpcnRAHqIkVS6EOOjnyD6qJK83VnOvhEPEC1Q=; b=uaMFbaf9srz8jMMgclSg2DTrBag3R1LQBvjIetkFihkKvgUgzEXc1jSvVqnDnBPmSF t/GtGQaA4xL1pdhsXI518yJyA3Z/VR0XutaDXt3DNmCQSwMzmxMLJ1m+iQCKQcbv8weF BIl+qbDVgFJuXbx2+9BTdqTihbYyYy58SJ8W9poyGigDMzomTqFeiR7kzV58+Hqkb7SE zF9hRvUfzUv6hmcEcQWgi9wTY4iEv2KIqFjoBInAUw6f5dSN9ixNT0matPHGlyDC0T62 Z4U7QS0+O4pZze4DmKosY1yEKoBMX9EBU+0NI3BEIbUvFPcx8TurllpQJVHOywIqd5kH Pngw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n82si2173317oib.123.2020.04.02.04.27.22; Thu, 02 Apr 2020 04:27:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388053AbgDBL0e (ORCPT + 99 others); Thu, 2 Apr 2020 07:26:34 -0400 Received: from cmccmta3.chinamobile.com ([221.176.66.81]:5389 "EHLO cmccmta3.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728803AbgDBL0d (ORCPT ); Thu, 2 Apr 2020 07:26:33 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.5]) by rmmx-syy-dmz-app10-12010 (RichMail) with SMTP id 2eea5e85cbd7fa3-5e0c4; Thu, 02 Apr 2020 19:26:16 +0800 (CST) X-RM-TRANSID: 2eea5e85cbd7fa3-5e0c4 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[112.25.154.146]) by rmsmtp-syy-appsvr03-12003 (RichMail) with SMTP id 2ee35e85cbd6d65-4831c; Thu, 02 Apr 2020 19:26:16 +0800 (CST) X-RM-TRANSID: 2ee35e85cbd6d65-4831c From: Tang Bin To: thor.thayer@linux.intel.com, bp@alien8.de Cc: mchehab@kernel.org, tony.luck@intel.com, james.morse@arm.com, rrichter@marvell.com, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Tang Bin Subject: [PATCH] EDAC/altera:Use platform_get_irq_optional() Date: Thu, 2 Apr 2020 19:27:40 +0800 Message-Id: <20200402112740.15580-1-tangbin@cmss.chinamobile.com> X-Mailer: git-send-email 2.20.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to simply code,because platform_get_irq() already has dev_err() message. Signed-off-by: Tang Bin --- drivers/edac/altera_edac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index e91cf1147..e12bad148 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -2099,7 +2099,7 @@ static int altr_edac_a10_probe(struct platform_device *pdev) return -ENOMEM; } - edac->sb_irq = platform_get_irq(pdev, 0); + edac->sb_irq = platform_get_irq_optional(pdev, 0); if (edac->sb_irq < 0) { dev_err(&pdev->dev, "No SBERR IRQ resource\n"); return edac->sb_irq; @@ -2134,7 +2134,7 @@ static int altr_edac_a10_probe(struct platform_device *pdev) } } #else - edac->db_irq = platform_get_irq(pdev, 1); + edac->db_irq = platform_get_irq_optional(pdev, 1); if (edac->db_irq < 0) { dev_err(&pdev->dev, "No DBERR IRQ resource\n"); return edac->db_irq; -- 2.20.1.windows.1