From: Gustavo A. R. Silva Date: Fri, 30 Jun 2017 05:59:52 +0000 (-0500) Subject: crypto: ccp - print error message on platform_get_irq failure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=28a2cc671989264844f989e09a7bb83398fd0dd4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Herbert Xu --- 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,