Skip to content

Commit 3c482e1

Browse files
Sergey ShtylyovUlf Hansson
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 <s.shtylyov@omp.ru> Link: https://lore.kernel.org/r/20230617203622.6812-8-s.shtylyov@omp.ru Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent fb51b74 commit 3c482e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)