summaryrefslogtreecommitdiff
path: root/drivers/crypto/ccp
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-06-30 00:59:52 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2017-07-18 17:50:54 +0800
commit28a2cc671989264844f989e09a7bb83398fd0dd4 (patch)
tree63e9404e22d9d6691d157ada3c7dbe05483b59a2 /drivers/crypto/ccp
parent33460b2dd13f7b4845364c59fccb79c778d7c5e0 (diff)
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>
Diffstat (limited to 'drivers/crypto/ccp')
-rw-r--r--drivers/crypto/ccp/ccp-platform.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/crypto/ccp/ccp-platform.c b/drivers/crypto/ccp/ccp-platform.c
index e26969e601ad..6020c4ae72fc 100644
--- a/drivers/crypto/ccp/ccp-platform.c
+++ b/drivers/crypto/ccp/ccp-platform.c
@@ -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,