crypto: omap-aes - fix error return code in omap_aes_probe()
Propagate the return value of platform_get_irq on failure. 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
353ef08397
commit
62c58f8d68
1 changed files with 1 additions and 0 deletions
|
@ -1095,6 +1095,7 @@ static int omap_aes_probe(struct platform_device *pdev)
|
|||
irq = platform_get_irq(pdev, 0);
|
||||
if (irq < 0) {
|
||||
dev_err(dev, "can't get IRQ resource\n");
|
||||
err = irq;
|
||||
goto err_irq;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue