diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-06-30 02:07:04 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-07-18 17:50:55 +0800 |
commit | 3822c331c5be580d8f9f65bdd6c0c187e0c5b503 (patch) | |
tree | 2c3849292dd785c999c5d7095fd9f1ab35084a93 | |
parent | 62c58f8d6883e06e113d4a8f22c37143931e8857 (diff) | |
download | op-kernel-dev-3822c331c5be580d8f9f65bdd6c0c187e0c5b503.zip op-kernel-dev-3822c331c5be580d8f9f65bdd6c0c187e0c5b503.tar.gz |
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>
-rw-r--r-- | drivers/crypto/omap-des.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/omap-des.c b/drivers/crypto/omap-des.c index 0bcab00..d37c950 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; } |