summaryrefslogtreecommitdiff
path: root/drivers/crypto/omap-des.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-06-30 10:07:04 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-07-18 12:50:55 +0300
commit3822c331c5be580d8f9f65bdd6c0c187e0c5b503 (patch)
tree2c3849292dd785c999c5d7095fd9f1ab35084a93 /drivers/crypto/omap-des.c
parent62c58f8d6883e06e113d4a8f22c37143931e8857 (diff)
downloadlinux-3822c331c5be580d8f9f65bdd6c0c187e0c5b503.tar.xz
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;
}