summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/omap-des.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva2017-06-30 09:07:04 +0200
committerHerbert Xu2017-07-18 11:50:55 +0200
commit3822c331c5be580d8f9f65bdd6c0c187e0c5b503 (patch)
tree2c3849292dd785c999c5d7095fd9f1ab35084a93 /drivers/crypto/omap-des.c
parentcrypto: omap-aes - fix error return code in omap_aes_probe() (diff)
downloadkernel-qcow2-linux-3822c331c5be580d8f9f65bdd6c0c187e0c5b503.tar.gz
kernel-qcow2-linux-3822c331c5be580d8f9f65bdd6c0c187e0c5b503.tar.xz
kernel-qcow2-linux-3822c331c5be580d8f9f65bdd6c0c187e0c5b503.zip
crypto: omap-des - fix error return code in omap_des_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/omap-des.c')
-rw-r--r--drivers/crypto/omap-des.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/omap-des.c b/drivers/crypto/omap-des.c
index 0bcab00e0ff5..d37c9506c36c 100644
--- a/drivers/crypto/omap-des.c
+++ b/drivers/crypto/omap-des.c
@@ -1023,7 +1023,8 @@ static int omap_des_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
- dev_err(dev, "can't get IRQ resource\n");
+ dev_err(dev, "can't get IRQ resource: %d\n", irq);
+ err = irq;
goto err_irq;
}