Skip to contentSkip to conversation

mmc: au1xmmc: propagate errors from platform_get_irq()

PATCH In review Sergey Shtylyov 3 participants 3 messages Dec 23, 2021 – Dec 28, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
This patch is against the 'next' branch of Ulf Hansson's 'mmc.git' repo.

 drivers/mmc/host/au1xmmc.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/mmc/host/au1xmmc.c +3 -1
Index: linux/drivers/mmc/host/au1xmmc.c
===================================================================
@@ -969,8 +969,10 @@ static int au1xmmc_probe(struct platform
 	}
 
 	host->irq = platform_get_irq(pdev, 0);
-	if (host->irq < 0)
+	if (host->irq < 0) {
+		ret = host->irq;
 		goto out3;
+	}
 
 	mmc->ops = &au1xmmc_ops;
 
#2 lore raw
In reply to Sergey Shtylyov
Quoted 5 lines · Sergey Shtylyov

The driver overrides the error codes returned by platform_get_irq() to -ENODEV. Switch to propagating the error codes upstream.

Applied for next, thanks!

Kind regards
Uffe

Quoted 23 lines

---
This patch is against the 'next' branch of Ulf Hansson's 'mmc.git' repo.

 drivers/mmc/host/au1xmmc.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: linux/drivers/mmc/host/au1xmmc.c
===================================================================

drivers/mmc/host/au1xmmc.c +3 -1
@@ -969,8 +969,10 @@ static int au1xmmc_probe(struct platform
        }
 
        host->irq = platform_get_irq(pdev, 0);
-       if (host->irq < 0)
+       if (host->irq < 0) {
+               ret = host->irq;
                goto out3;
+       }
 
        mmc->ops = &au1xmmc_ops;