From: Sergey Shtylyov Date: Thu, 23 Dec 2021 18:45:21 +0000 (+0300) Subject: mmc: au1xmmc: propagate errors from platform_get_irq() X-Git-Tag: howlett/maple/20220722_2~1471^2~4 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a1ab47ac99dc66eadc36a5d48842e69b5429eb44;p=users%2Fjedix%2Flinux-maple.git 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 Tested-by: Manuel Lauss --- diff --git a/drivers/mmc/host/au1xmmc.c b/drivers/mmc/host/au1xmmc.c index 0acc237843f7c..a9a0837153d87 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;