]> git.baikalelectronics.ru Git - kernel.git/commit
media: imx-media-csi: Fix inconsistent IS_ERR and PTR_ERR
authorFrom: Gustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 16 Apr 2018 17:28:56 +0000 (13:28 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 10:21:06 +0000 (06:21 -0400)
commit83954dcdc8ef08d7583e17394930e85a30945619
tree0d64732a7a0bee15795f1561c92a742c3ee0f664
parent8fdf222feba61c86a5a1d628a7df50de1e510fc4
media: imx-media-csi: Fix inconsistent IS_ERR and PTR_ERR

Fix inconsistent IS_ERR and PTR_ERR in imx_csi_probe.
The proper pointer to be passed as argument is pinctrl
instead of priv->vdev.

This issue was detected with the help of Coccinelle.

Fixes: bd271ec3df5f ("media: imx: Don't initialize vars that won't be used")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/imx/imx-media-csi.c