summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/ov13b10.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-09-14 20:16:26 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-09-27 09:39:58 +0200
commitacc53ef65cab23b02918da8806d387dbc4045683 (patch)
treec74cd98a9555cbb7f0925fb989b2d5975004f6eb /drivers/media/i2c/ov13b10.c
parentmedia: i2c: ov13858: Drop check for reentrant .s_stream() (diff)
downloadlinux-acc53ef65cab23b02918da8806d387dbc4045683.tar.xz
linux-acc53ef65cab23b02918da8806d387dbc4045683.zip
media: i2c: ov13b10: Drop check for reentrant .s_stream()
The subdev .s_stream() operation shall not be called to start streaming on an already started subdev, or stop streaming on a stopped subdev. Remove the check that guards against that condition. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/i2c/ov13b10.c')
-rw-r--r--drivers/media/i2c/ov13b10.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/i2c/ov13b10.c b/drivers/media/i2c/ov13b10.c
index c8e0818476ab..32c598ed7752 100644
--- a/drivers/media/i2c/ov13b10.c
+++ b/drivers/media/i2c/ov13b10.c
@@ -1217,10 +1217,6 @@ static int ov13b10_set_stream(struct v4l2_subdev *sd, int enable)
int ret = 0;
mutex_lock(&ov13b->mutex);
- if (ov13b->streaming == enable) {
- mutex_unlock(&ov13b->mutex);
- return 0;
- }
if (enable) {
ret = pm_runtime_resume_and_get(&client->dev);