Message ID | 20181029182410.18783-3-m.felsch@pengutronix.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | media: mt9m111 features | expand |
diff --git a/drivers/media/i2c/mt9m111.c b/drivers/media/i2c/mt9m111.c index e0ac5aa6ea64..1f8789fe28af 100644 --- a/drivers/media/i2c/mt9m111.c +++ b/drivers/media/i2c/mt9m111.c @@ -560,6 +560,9 @@ static int mt9m111_set_fmt(struct v4l2_subdev *sd, bool bayer; int ret; + if (mt9m111->is_streaming) + return -EBUSY; + if (format->pad) return -EINVAL;