mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
soc: imx: gpcv2: Print the correct error code
The current code prints 'ret' (thus 0) while it should use 'err'. Signed-off-by: Guido Günther <[email protected]> Reviewed-by: Daniel Baluta <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
This commit is contained in:
parent
4a92f07816
commit
968c6f4b3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue