Skip to content

Commit

Permalink
crypto: mediatek - fix error return code in mtk_crypto_probe()
Browse files Browse the repository at this point in the history
Propagate the return value of platform_get_irq on failure.

Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
GustavoARSilva authored and herbertx committed Jul 18, 2017
1 parent 28a2cc6 commit 0a7d710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/mediatek/mtk-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ static int mtk_crypto_probe(struct platform_device *pdev)
cryp->irq[i] = platform_get_irq(pdev, i);
if (cryp->irq[i] < 0) {
dev_err(cryp->dev, "no IRQ:%d resource info\n", i);
return -ENXIO;
return cryp->irq[i];
}
}

Expand Down

0 comments on commit 0a7d710

Please sign in to comment.