soc: imx: gpcv2: Print the correct error code
authorGuido Günther <agx@sigxcpu.org>
Wed, 21 Aug 2019 16:33:04 +0000 (18:33 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 24 Aug 2019 20:41:08 +0000 (22:41 +0200)
commit968c6f4b3c21e9fae9b49cc91214a01b4827625d
treed6451674f1663c4a601f3edf226060382a9e7633
parent4a92f07816ba3020c690cc0f6e9627fec15b335e
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>
drivers/soc/imx/gpcv2.c