projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a92f07
)
soc: imx: gpcv2: Print the correct error code
author
Guido Günther
<agx@sigxcpu.org>
Wed, 21 Aug 2019 16:33:04 +0000
(18:33 +0200)
committer
Shawn Guo
<shawnguo@kernel.org>
Sat, 24 Aug 2019 20:41:08 +0000
(22:41 +0200)
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>
drivers/soc/imx/gpcv2.c
patch
|
blob
|
history
diff --git
a/drivers/soc/imx/gpcv2.c
b/drivers/soc/imx/gpcv2.c
index 31b8d002d85583348a1429a734e56334b75418fb..b0dffb06c05df54c01e51d36ba7ea08cfc267ae9 100644
(file)
--- 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;
}