Skip to content

Commit 0c4dc0f

Browse files
Sergey Shtylyovstorulf
authored andcommitted
mmc: mtk-sd: 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: 2084890 ("mmc: mediatek: Add Mediatek MMC driver") Signed-off-by: Sergey Shtylyov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent b8ada54 commit 0c4dc0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/mtk-sd.c

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

26812681
host->irq = platform_get_irq(pdev, 0);
26822682
if (host->irq < 0) {
2683-
ret = -EINVAL;
2683+
ret = host->irq;
26842684
goto host_free;
26852685
}
26862686

0 commit comments

Comments
 (0)