Skip to content

Commit 8d84064

Browse files
Sergey Shtylyovstorulf
authored andcommitted
mmc: mvsdio: 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 0c4dc0f commit 8d84064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/mvsdio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ static int mvsd_probe(struct platform_device *pdev)
704704
}
705705
irq = platform_get_irq(pdev, 0);
706706
if (irq < 0)
707-
return -ENXIO;
707+
return irq;
708708

709709
mmc = mmc_alloc_host(sizeof(struct mvsd_host), &pdev->dev);
710710
if (!mmc) {

0 commit comments

Comments
 (0)