Skip to content

Commit

Permalink
crypto: ccp - print error message on platform_get_irq failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gustavo A. R. Silva authored and Herbert Xu committed Jul 18, 2017
1 parent 33460b2 commit 28a2cc6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/crypto/ccp/ccp-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 28a2cc6

Please sign in to comment.