media: i2c: imx274: Remove stop stream i2c writes during remove
authorSowjanya Komatineni <skomatineni@nvidia.com>
Mon, 21 Sep 2020 21:39:38 +0000 (23:39 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Nov 2020 09:31:12 +0000 (10:31 +0100)
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 <skomatineni@nvidia.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/imx274.c

index 55869fffe35632574cd2f094b5d8b4896ffa8292..79b8b5a137d4ba2f751e8a20dfda2dad2eb9e48d 100644 (file)
@@ -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);