diff options
author | Gustavo A. R. Silva | 2017-06-30 09:07:04 +0200 |
---|---|---|
committer | Herbert Xu | 2017-07-18 11:50:55 +0200 |
commit | 3822c331c5be580d8f9f65bdd6c0c187e0c5b503 (patch) | |
tree | 2c3849292dd785c999c5d7095fd9f1ab35084a93 /drivers/crypto/omap-des.c | |
parent | crypto: omap-aes - fix error return code in omap_aes_probe() (diff) | |
download | kernel-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.c | 3 |
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; } |