media: imx-media-csi: Fix inconsistent IS_ERR and PTR_ERR
authorFrom: Gustavo A. R. Silva <[email protected]>
Mon, 16 Apr 2018 17:28:56 +0000 (13:28 -0400)
committerMauro Carvalho Chehab <[email protected]>
Fri, 4 May 2018 10:21:06 +0000 (06:21 -0400)
commit2b7db29b79190f7ad5c32f63594ba08b9b9171ea
tree0d64732a7a0bee15795f1561c92a742c3ee0f664
parent6da6c0db5316275015e8cc2959f12a17584aeb64
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: 52e17089d185 ("media: imx: Don't initialize vars that won't be used")
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Fabio Estevam <[email protected]>
Reviewed-by: Philipp Zabel <[email protected]>
Tested-by: Philipp Zabel <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/staging/media/imx/imx-media-csi.c