mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
EDAC/xgene: Fix deferred probing
commitdfd0dfb9a7upstream. 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:0d4429301c("EDAC: Add APM X-Gene SoC EDAC driver") Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20220124185503.6720-3-s.shtylyov@omp.ru Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2a12faf55b
commit
ef2053afd7
@@ -1919,7 +1919,7 @@ static int xgene_edac_probe(struct platform_device *pdev)
|
|||||||
irq = platform_get_irq(pdev, i);
|
irq = platform_get_irq(pdev, i);
|
||||||
if (irq < 0) {
|
if (irq < 0) {
|
||||||
dev_err(&pdev->dev, "No IRQ resource\n");
|
dev_err(&pdev->dev, "No IRQ resource\n");
|
||||||
rc = -EINVAL;
|
rc = irq;
|
||||||
goto out_err;
|
goto out_err;
|
||||||
}
|
}
|
||||||
rc = devm_request_irq(&pdev->dev, irq,
|
rc = devm_request_irq(&pdev->dev, irq,
|
||||||
|
|||||||
Reference in New Issue
Block a user