From: Gustavo A. R. Silva Date: Fri, 30 Jun 2017 06:42:12 +0000 (-0500) Subject: crypto: mxc-scc - fix error code in mxc_scc_probe() X-Git-Tag: v4.14-rc1~129^2~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a19dc5bde0819886093c9d42b0424405a343516;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/mxc-scc.c b/drivers/crypto/mxc-scc.c index ee4be1b0..e01c463 100644 --- a/drivers/crypto/mxc-scc.c +++ b/drivers/crypto/mxc-scc.c @@ -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; }