mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
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:
parent
33460b2dd1
commit
28a2cc6719
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user