diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-06-30 09:00:54 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-07-18 11:50:55 +0200 |
commit | 62c58f8d6883e06e113d4a8f22c37143931e8857 (patch) | |
tree | 8f224bad974508488d8fe524d2071ba053c21cbb /drivers/crypto/omap-aes.c | |
parent | crypto: mxs-dcp - print error message on platform_get_irq failure (diff) | |
download | linux-62c58f8d6883e06e113d4a8f22c37143931e8857.tar.xz linux-62c58f8d6883e06e113d4a8f22c37143931e8857.zip |
crypto: omap-aes - fix error return code in omap_aes_probe()
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-aes.c')
-rw-r--r-- | drivers/crypto/omap-aes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index 5120a17731d0..c376a3ee7c2c 100644 --- a/drivers/crypto/omap-aes.c +++ b/drivers/crypto/omap-aes.c @@ -1095,6 +1095,7 @@ static int omap_aes_probe(struct platform_device *pdev) irq = platform_get_irq(pdev, 0); if (irq < 0) { dev_err(dev, "can't get IRQ resource\n"); + err = irq; goto err_irq; } |