summaryrefslogtreecommitdiff
path: root/drivers/crypto/mediatek
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-06-30 09:24:54 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-07-18 12:50:54 +0300
commit0a7d710de12a2a9bad195edc318729e0ebdcc512 (patch)
tree24ad20a145a964bfb3b9ae412c974918d5b73c16 /drivers/crypto/mediatek
parent28a2cc671989264844f989e09a7bb83398fd0dd4 (diff)
downloadlinux-0a7d710de12a2a9bad195edc318729e0ebdcc512.tar.xz
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')
-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];
}
}