media: imx274: declare the correct number of controls
v4l2_ctrl_handler_init() expects a hint of how many controls this handler is expected to refer to. Since this number here is always 4, let's pass exactly 4. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
cea8c0077d
commit
82f5b507c0
|
@ -1904,7 +1904,7 @@ static int imx274_probe(struct i2c_client *client,
|
|||
imx274_reset(imx274, 1);
|
||||
|
||||
/* initialize controls */
|
||||
ret = v4l2_ctrl_handler_init(&imx274->ctrls.handler, 2);
|
||||
ret = v4l2_ctrl_handler_init(&imx274->ctrls.handler, 4);
|
||||
if (ret < 0) {
|
||||
dev_err(&client->dev,
|
||||
"%s : ctrl handler init Failed\n", __func__);
|
||||
|
|
Loading…
Reference in New Issue