Skip to content

Commit dfd0dfb

Browse files
Sergey Shtylyovsuryasaimadhu
authored andcommitted
EDAC/xgene: Fix deferred probing
The driver overrides error codes returned by platform_get_irq_optional() to -EINVAL 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: 0d44293 ("EDAC: Add APM X-Gene SoC EDAC driver") Signed-off-by: Sergey Shtylyov <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 279eb85 commit dfd0dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)