Skip to content

Commit aedf4ba

Browse files
Sergey Shtylyovstorulf
authored andcommitted
mmc: omap: fix deferred probing
The driver overrides the error codes returned by platform_get_irq() to -ENXIO, 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: 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 8d84064 commit aedf4ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/omap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ static int mmc_omap_probe(struct platform_device *pdev)
13431343

13441344
irq = platform_get_irq(pdev, 0);
13451345
if (irq < 0)
1346-
return -ENXIO;
1346+
return irq;
13471347

13481348
host->virt_base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
13491349
if (IS_ERR(host->virt_base))

0 commit comments

Comments
 (0)