Skip to content

Commit 413db49

Browse files
Sergey Shtylyovstorulf
authored andcommitted
mmc: usdhi60rol0: fix deferred probing
The driver overrides the error codes returned by platform_get_irq_byname() to -ENODEV, so if it returns -EPROBE_DEFER, the driver will fail the probe permanently instead of the deferred probing. Switch to propagating error codes upstream. Fixes: 9ec36ca ("of/irq: do irq resolution in platform_get_irq") Signed-off-by: Sergey Shtylyov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent c2df53c commit 413db49

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/mmc/host/usdhi6rol0.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,8 +1757,10 @@ static int usdhi6_probe(struct platform_device *pdev)
17571757
irq_cd = platform_get_irq_byname(pdev, "card detect");
17581758
irq_sd = platform_get_irq_byname(pdev, "data");
17591759
irq_sdio = platform_get_irq_byname(pdev, "SDIO");
1760-
if (irq_sd < 0 || irq_sdio < 0)
1761-
return -ENODEV;
1760+
if (irq_sd < 0)
1761+
return irq_sd;
1762+
if (irq_sdio < 0)
1763+
return irq_sdio;
17621764

17631765
mmc = mmc_alloc_host(sizeof(struct usdhi6_host), dev);
17641766
if (!mmc)

0 commit comments

Comments
 (0)