crypto: mxc-scc - fix error code in mxc_scc_probe()

Print and 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:
Gustavo A. R. Silva 2017-06-30 01:42:12 -05:00 committed by Herbert Xu
parent 0a7d710de1
commit 5a19dc5bde
1 changed files with 2 additions and 2 deletions

View File

@ -708,8 +708,8 @@ static int mxc_scc_probe(struct platform_device *pdev)
for (i = 0; i < 2; i++) {
irq = platform_get_irq(pdev, i);
if (irq < 0) {
dev_err(dev, "failed to get irq resource\n");
ret = -EINVAL;
dev_err(dev, "failed to get irq resource: %d\n", irq);
ret = irq;
goto err_out;
}