crypto: ccp - print error message on platform_get_irq failure

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>
This commit is contained in:
Gustavo A. R. Silva 2017-06-30 00:59:52 -05:00 committed by Herbert Xu
parent 33460b2dd1
commit 28a2cc6719

View File

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