From: Sowjanya Komatineni Date: Mon, 21 Sep 2020 21:39:38 +0000 (+0200) Subject: media: i2c: imx274: Remove stop stream i2c writes during remove X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f4fcf0108b42a997aace451fa1a0801e1c7de0d3;p=linux.git media: i2c: imx274: Remove stop stream i2c writes during remove Sensor should already be in standby during remove and there is no need to configure sensor registers for stream stop. Signed-off-by: Sowjanya Komatineni Reviewed-by: Thierry Reding Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/imx274.c b/drivers/media/i2c/imx274.c index 55869fffe3563..79b8b5a137d4b 100644 --- a/drivers/media/i2c/imx274.c +++ b/drivers/media/i2c/imx274.c @@ -1970,9 +1970,6 @@ static int imx274_remove(struct i2c_client *client) struct v4l2_subdev *sd = i2c_get_clientdata(client); struct stimx274 *imx274 = to_imx274(sd); - /* stop stream */ - imx274_write_table(imx274, imx274_stop); - v4l2_async_unregister_subdev(sd); v4l2_ctrl_handler_free(&imx274->ctrls.handler); media_entity_cleanup(&sd->entity);