crypto: ccp - print error message on platform_get_irq failure
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 30 Jun 2017 05:59:52 +0000 (00:59 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 18 Jul 2017 09:50:54 +0000 (17:50 +0800)
Print error message on platform_get_irq failure before return.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-platform.c

index e26969e601ad68c2d96db432f533b61b48b4c0fe..6020c4ae72fcdbe5432b2bd1f84499cba3124426 100644 (file)
@@ -66,8 +66,10 @@ static int ccp_get_irq(struct ccp_device *ccp)
        int ret;
 
        ret = platform_get_irq(pdev, 0);
-       if (ret < 0)
+       if (ret < 0) {
+               dev_notice(dev, "unable to get IRQ (%d)\n", ret);
                return ret;
+       }
 
        ccp->irq = ret;
        ret = request_irq(ccp->irq, ccp->vdata->perform->irqhandler, 0,