提交 968c6f4b 编写于 作者: G Guido Günther 提交者: 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: NGuido Günther <agx@sigxcpu.org>
Reviewed-by: NDaniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: NShawn Guo <shawnguo@kernel.org>
上级 4a92f078
......@@ -198,7 +198,7 @@ static int imx_gpc_pu_pgc_sw_pxx_req(struct generic_pm_domain *genpd,
err = regulator_disable(domain->regulator);
if (err)
dev_err(domain->dev,
"failed to disable regulator: %d\n", ret);
"failed to disable regulator: %d\n", err);
/* Preserve earlier error code */
ret = ret ?: err;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册