Skip to content

Commit 898b584

Browse files
committed
Merge tag 'edac_urgent_for_v5.17_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras
Pull EDAC fixes from Borislav Petkov: "Fix altera and xgene EDAC drivers to propagate the correct error code from platform_get_irq() so that deferred probing still works" * tag 'edac_urgent_for_v5.17_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras: EDAC/xgene: Fix deferred probing EDAC/altera: Fix deferred probing
2 parents 90c9e95 + dfd0dfb commit 898b584

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/edac/altera_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static int altr_sdram_probe(struct platform_device *pdev)
350350
if (irq < 0) {
351351
edac_printk(KERN_ERR, EDAC_MC,
352352
"No irq %d in DT\n", irq);
353-
return -ENODEV;
353+
return irq;
354354
}
355355

356356
/* Arria10 has a 2nd IRQ */

drivers/edac/xgene_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,7 @@ static int xgene_edac_probe(struct platform_device *pdev)
19191919
irq = platform_get_irq_optional(pdev, i);
19201920
if (irq < 0) {
19211921
dev_err(&pdev->dev, "No IRQ resource\n");
1922-
rc = -EINVAL;
1922+
rc = irq;
19231923
goto out_err;
19241924
}
19251925
rc = devm_request_irq(&pdev->dev, irq,

0 commit comments

Comments
 (0)