crypto: omap-aes - fix error return code in omap_aes_probe()
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 30 Jun 2017 07:00:54 +0000 (02:00 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 18 Jul 2017 09:50:55 +0000 (17:50 +0800)
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>
drivers/crypto/omap-aes.c

index 5120a17731d0c5d99d613cb6383467d9756d273b..c376a3ee7c2c3d370b71ae8cdd359da742425975 100644 (file)
@@ -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;
                }