Commit 968c6f4b authored by Guido Günther's avatar Guido Günther Committed by Shawn Guo

soc: imx: gpcv2: Print the correct error code

The current code prints 'ret' (thus 0) while it should use 'err'.
Signed-off-by: default avatarGuido Günther <agx@sigxcpu.org>
Reviewed-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 4a92f078
...@@ -198,7 +198,7 @@ static int imx_gpc_pu_pgc_sw_pxx_req(struct generic_pm_domain *genpd, ...@@ -198,7 +198,7 @@ static int imx_gpc_pu_pgc_sw_pxx_req(struct generic_pm_domain *genpd,
err = regulator_disable(domain->regulator); err = regulator_disable(domain->regulator);
if (err) if (err)
dev_err(domain->dev, dev_err(domain->dev,
"failed to disable regulator: %d\n", ret); "failed to disable regulator: %d\n", err);
/* Preserve earlier error code */ /* Preserve earlier error code */
ret = ret ?: err; ret = ret ?: err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment