diff options
author | Guido Günther <agx@sigxcpu.org> | 2019-08-21 18:33:04 +0200 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2019-08-24 22:41:08 +0200 |
commit | 968c6f4b3c21e9fae9b49cc91214a01b4827625d (patch) | |
tree | d6451674f1663c4a601f3edf226060382a9e7633 /drivers/soc | |
parent | 4a92f07816ba3020c690cc0f6e9627fec15b335e (diff) | |
download | linux-968c6f4b3c21e9fae9b49cc91214a01b4827625d.tar.gz |
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 <agx@sigxcpu.org>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/imx/gpcv2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c index 31b8d002d855..b0dffb06c05d 100644 --- a/drivers/soc/imx/gpcv2.c +++ b/drivers/soc/imx/gpcv2.c @@ -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; } |