Skip to content

Commit b465dea

Browse files
Sergey Shtylyovstorulf
authored andcommitted
mmc: sdhci-acpi: fix deferred probing
The driver overrides the error codes returned by platform_get_irq() to -EINVAL, so if it returns -EPROBE_DEFER, the driver will fail the probe permanently instead of the deferred probing. Switch to propagating the error codes upstream. Fixes: 1b7ba57 ("mmc: sdhci-acpi: Handle return value of platform_get_irq") Signed-off-by: Sergey Shtylyov <[email protected]> Acked-by: Adrian Hunter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 3c482e1 commit b465dea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/sdhci-acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ static int sdhci_acpi_probe(struct platform_device *pdev)
829829
host->ops = &sdhci_acpi_ops_dflt;
830830
host->irq = platform_get_irq(pdev, 0);
831831
if (host->irq < 0) {
832-
err = -EINVAL;
832+
err = host->irq;
833833
goto err_free;
834834
}
835835

0 commit comments

Comments
 (0)