Skip to content

Commit

Permalink
crypto: mxc-scc - fix error code in mxc_scc_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gustavo A. R. Silva authored and Herbert Xu committed Jul 18, 2017
1 parent 0a7d710 commit 5a19dc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/crypto/mxc-scc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5a19dc5

Please sign in to comment.