aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Shtylyov <[email protected]>2022-01-24 21:55:02 +0300
committerBorislav Petkov <[email protected]>2022-01-28 21:38:46 +0100
commit279eb8575fdaa92c314a54c0d583c65e26229107 (patch)
tree53ac98be15d237793b80daaa956d91298113143b
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff)
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: 71bcada88b0f ("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]
-rw-r--r--drivers/edac/altera_edac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c
index 3a6d2416cb0f..5dd29789f97d 100644
--- a/drivers/edac/altera_edac.c
+++ b/drivers/edac/altera_edac.c
@@ -350,7 +350,7 @@ static int altr_sdram_probe(struct platform_device *pdev)
if (irq < 0) {
edac_printk(KERN_ERR, EDAC_MC,
"No irq %d in DT\n", irq);
- return -ENODEV;
+ return irq;
}
/* Arria10 has a 2nd IRQ */