Skip to content

Commit 2a12faf

Browse files
Sergey Shtylyovgregkh
authored andcommitted
EDAC/altera: Fix deferred probing
commit 279eb85 upstream. 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 <s.shtylyov@omp.ru> Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Dinh Nguyen <dinguyen@kernel.org> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20220124185503.6720-2-s.shtylyov@omp.ru Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent dd274cf commit 2a12faf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/edac/altera_edac.c

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

355355
/* Arria10 has a 2nd IRQ */

0 commit comments

Comments
 (0)