Skip to contentSkip to conversation

crypto: mediatek: fix error return code in mtk_crypto_probe()

PATCH In review Gustavo A. R. Silva 2 participants 2 messages Jun 30, 2017 – Jul 18, 2017

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

PATCH 1/1 crypto: mediatek: fix error return code in mtk_crypto_probe()

Propagate the return value of platform_get_irq on failure.

---
 drivers/crypto/mediatek/mtk-platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/mediatek/mtk-platform.c +1 -1
index 000b650..b182e94 100644
@@ -500,7 +500,7 @@ static int mtk_crypto_probe(struct platform_device *pdev)
 		cryp->irq[i] = platform_get_irq(pdev, i);
 		if (cryp->irq[i] < 0) {
 			dev_err(cryp->dev, "no IRQ:%d resource info\n", i);
-			return -ENXIO;
+			return cryp->irq[i];
 		}
 	}
 
Signature · 1 line
2.5.0
maintainer
#1 lore raw
Quoted 3 lines · Gustavo A. R. Silva

Propagate the return value of platform_get_irq on failure.

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt