Skip to contentSkip to conversation

Revert "EDAC/xgene: Do not print a failure message to get an IRQ twice"

PATCH New Sergey Shtylyov 1 participant 1 message Jan 26, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "EDAC/xgene: Do not print a failure message to get an IRQ twice"

This reverts commit e26124cd5f7099949109608845bba9e9bf96599c.

Calling platform_get_irq_optional() doesn't make sense if you then bail out on any error it returns. Switch back to calling platform_get_irq(); note that calling dev_err_probe() from there is being discussed currently...

---
This patch is against the 'edac-for-next' branch of the 'ras.git' repo.

drivers/edac/xgene_edac.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/edac/xgene_edac.c +1 -1
index 2ccd1db5e98f..1d2c27a00a4a 100644
@@ -1916,7 +1916,7 @@ static int xgene_edac_probe(struct platform_device *pdev)
 		int i;
 
 		for (i = 0; i < 3; i++) {
-			irq = platform_get_irq_optional(pdev, i);
+			irq = platform_get_irq(pdev, i);
 			if (irq < 0) {
 				dev_err(&pdev->dev, "No IRQ resource\n");
 				rc = -EINVAL;
Signature · 1 line
2.26.3