summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/mxc-scc.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva2017-06-30 08:42:12 +0200
committerHerbert Xu2017-07-18 11:50:54 +0200
commit5a19dc5bde0819886093c9d42b0424405a343516 (patch)
tree9d52b6034f06ab42235825cbd4ee4775c3e82576 /drivers/crypto/mxc-scc.c
parentcrypto: mediatek - fix error return code in mtk_crypto_probe() (diff)
downloadkernel-qcow2-linux-5a19dc5bde0819886093c9d42b0424405a343516.tar.gz
kernel-qcow2-linux-5a19dc5bde0819886093c9d42b0424405a343516.tar.xz
kernel-qcow2-linux-5a19dc5bde0819886093c9d42b0424405a343516.zip
crypto: mxc-scc - fix error code in mxc_scc_probe()
Print and 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/mxc-scc.c')
-rw-r--r--drivers/crypto/mxc-scc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/mxc-scc.c b/drivers/crypto/mxc-scc.c
index ee4be1b0d30b..e01c46387df8 100644
--- a/drivers/crypto/mxc-scc.c
+++ b/drivers/crypto/mxc-scc.c
@@ -708,8 +708,8 @@ static int mxc_scc_probe(struct platform_device *pdev)
for (i = 0; i < 2; i++) {
irq = platform_get_irq(pdev, i);
if (irq < 0) {
- dev_err(dev, "failed to get irq resource\n");
- ret = -EINVAL;
+ dev_err(dev, "failed to get irq resource: %d\n", irq);
+ ret = irq;
goto err_out;
}