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

index 0bcab00e0ff5249824ea364f95adf010f47d6270..d37c9506c36c8cb4ab648af933d6d39e68cfaacc 100644 (file)
@@ -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;
                }