Commit 2b7db29b authored by From: Gustavo A. R. Silva's avatar From: Gustavo A. R. Silva Committed by Mauro Carvalho Chehab

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: 52e17089 ("media: imx: Don't initialize vars that won't be used")
Signed-off-by: default avatarGustavo A. R. Silva <>
Signed-off-by: default avatarFabio Estevam <>
Reviewed-by: default avatarPhilipp Zabel <>
Tested-by: default avatarPhilipp Zabel <>
Signed-off-by: default avatarHans Verkuil <>
Signed-off-by: default avatarMauro Carvalho Chehab <>
parent 6da6c0db
......@@ -1799,7 +1799,7 @@ static int imx_csi_probe(struct platform_device *pdev)
priv->dev->of_node = pdata->of_node;
pinctrl = devm_pinctrl_get_select_default(priv->dev);
if (IS_ERR(pinctrl)) {
ret = PTR_ERR(priv->vdev);
ret = PTR_ERR(pinctrl);
"devm_pinctrl_get_select_default() failed: %d\n", ret);
if (ret != -ENODEV)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment