Skip to content

Commit 3c482e1

Browse files
Sergey Shtylyovstorulf
authored andcommitted
mmc: owl: 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: ff65ffe ("mmc: Add Actions Semi Owl SoCs SD/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 fb51b74 commit 3c482e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/owl-mmc.c

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

638638
owl_host->irq = platform_get_irq(pdev, 0);
639639
if (owl_host->irq < 0) {
640-
ret = -EINVAL;
640+
ret = owl_host->irq;
641641
goto err_release_channel;
642642
}
643643

0 commit comments

Comments
 (0)