Skip to content

Commit 279eb85

Browse files
Sergey Shtylyovsuryasaimadhu
authored andcommitted
EDAC/altera: Fix deferred probing
The driver overrides the error codes returned by platform_get_irq() to -ENODEV for some strange reason, so if it returns -EPROBE_DEFER, the driver will fail the probe permanently instead of the deferred probing. Switch to propagating the proper error codes to platform driver code upwards. [ bp: Massage commit message. ] Fixes: 71bcada ("edac: altera: Add Altera SDRAM EDAC support") Signed-off-by: Sergey Shtylyov <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Dinh Nguyen <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e783362 commit 279eb85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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 */

0 commit comments

Comments
 (0)