summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/imx208.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-09-14 21:16:11 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-09-27 10:39:57 +0300
commit4d06c42942f440a3c418e2af4a02d7d00d331840 (patch)
tree2d7f6dcea31bc3b7e75a70d475f7c4400d52c8f6 /drivers/media/i2c/imx208.c
parentc42995a717ec920ac9220914617358d6f6a867b2 (diff)
downloadlinux-4d06c42942f440a3c418e2af4a02d7d00d331840.tar.xz
media: i2c: imx208: 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/imx208.c')
-rw-r--r--drivers/media/i2c/imx208.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/i2c/imx208.c b/drivers/media/i2c/imx208.c
index a6edcae4ef47..e5c2b4752832 100644
--- a/drivers/media/i2c/imx208.c
+++ b/drivers/media/i2c/imx208.c
@@ -714,10 +714,6 @@ static int imx208_set_stream(struct v4l2_subdev *sd, int enable)
int ret = 0;
mutex_lock(&imx208->imx208_mx);
- if (imx208->streaming == enable) {
- mutex_unlock(&imx208->imx208_mx);
- return 0;
- }
if (enable) {
ret = pm_runtime_resume_and_get(&client->dev);