Commit 05ef7ec4 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

media: i2c: imx290: Handle error from imx290_set_data_lanes()

Check the error status returned by imx290_set_data_lanes() in its
caller and propagate it.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 76c00128
...@@ -756,7 +756,11 @@ static int imx290_start_streaming(struct imx290 *imx290, ...@@ -756,7 +756,11 @@ static int imx290_start_streaming(struct imx290 *imx290,
} }
/* Set data lane count */ /* Set data lane count */
imx290_set_data_lanes(imx290); ret = imx290_set_data_lanes(imx290);
if (ret < 0) {
dev_err(imx290->dev, "Could not set data lanes\n");
return ret;
}
/* Apply the register values related to current frame format */ /* Apply the register values related to current frame format */
format = v4l2_subdev_get_pad_format(&imx290->sd, state, 0); format = v4l2_subdev_get_pad_format(&imx290->sd, state, 0);
......
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