linux-edac.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] EDAC/altera:Use platform_get_irq_optional()
@ 2020-04-02 11:27 Tang Bin
  2020-04-02 12:30 ` Robert Richter
  0 siblings, 1 reply; 7+ messages in thread
From: Tang Bin @ 2020-04-02 11:27 UTC (permalink / raw)
  To: thor.thayer, bp
  Cc: mchehab, tony.luck, james.morse, rrichter, linux-edac,
	linux-kernel, Tang Bin

In order to simply code,because platform_get_irq() already has
dev_err() message.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
---
 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




^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-10 10:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-02 11:27 [PATCH] EDAC/altera:Use platform_get_irq_optional() Tang Bin
2020-04-02 12:30 ` Robert Richter
     [not found]   ` <202004022106312118022@cmss.chinamobile.com>
2020-04-08  7:10     ` Robert Richter
     [not found]       ` <2020040819334451781313@cmss.chinamobile.com>
2020-04-08 11:36         ` Borislav Petkov
2020-04-10  8:25           ` Tang Bin
2020-04-10  9:52             ` Borislav Petkov
2020-04-10 10:07               ` Tang Bin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).