summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSergey Shtylyov <s.shtylyov@omp.ru>2021-12-23 19:45:21 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2021-12-28 17:42:51 +0100
commita1ab47ac99dc66eadc36a5d48842e69b5429eb44 (patch)
tree1dc0f63032ff8ee28a06ec1d316f3c634fc53731 /drivers
parentmmc: sdhci-pci-o2micro: Restore the SD clock's base clock frequency (diff)
downloadlinux-a1ab47ac99dc66eadc36a5d48842e69b5429eb44.tar.xz
linux-a1ab47ac99dc66eadc36a5d48842e69b5429eb44.zip
mmc: au1xmmc: propagate errors from platform_get_irq()
The driver overrides the error codes returned by platform_get_irq() to -ENODEV. Switch to propagating the error codes upstream. Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru> Tested-by: Manuel Lauss <manuel.lauss@gmail.com Link: https://lore.kernel.org/r/f642ef4d-6027-eb2e-0257-1c4f13911aed@omp.ru Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/au1xmmc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/host/au1xmmc.c b/drivers/mmc/host/au1xmmc.c
index 0acc237843f7..a9a0837153d8 100644
--- a/drivers/mmc/host/au1xmmc.c
+++ b/drivers/mmc/host/au1xmmc.c
@@ -969,8 +969,10 @@ static int au1xmmc_probe(struct platform_device *pdev)
}
host->irq = platform_get_irq(pdev, 0);
- if (host->irq < 0)
+ if (host->irq < 0) {
+ ret = host->irq;
goto out3;
+ }
mmc->ops = &au1xmmc_ops;