summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/mediatek/mtk-platform.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-06-30 08:24:54 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-07-18 11:50:54 +0200
commit0a7d710de12a2a9bad195edc318729e0ebdcc512 (patch)
tree24ad20a145a964bfb3b9ae412c974918d5b73c16 /drivers/crypto/mediatek/mtk-platform.c
parentcrypto: ccp - print error message on platform_get_irq failure (diff)
downloadlinux-0a7d710de12a2a9bad195edc318729e0ebdcc512.tar.xz
linux-0a7d710de12a2a9bad195edc318729e0ebdcc512.zip
crypto: mediatek - fix error return code in mtk_crypto_probe()
Propagate the return value of platform_get_irq on failure. Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/mediatek/mtk-platform.c')
-rw-r--r--drivers/crypto/mediatek/mtk-platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/mediatek/mtk-platform.c b/drivers/crypto/mediatek/mtk-platform.c
index 000b6500a22d..b182e941b0cd 100644
--- a/drivers/crypto/mediatek/mtk-platform.c
+++ b/drivers/crypto/mediatek/mtk-platform.c
@@ -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];
}
}