Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}