Commit 2d01209f authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

[media] v4l: mt9v032: Consider control initialization errors as fatal

The device requires control to be properly operated, they're not
optional.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 7c3be9f8
...@@ -961,9 +961,12 @@ static int mt9v032_probe(struct i2c_client *client, ...@@ -961,9 +961,12 @@ static int mt9v032_probe(struct i2c_client *client,
mt9v032->subdev.ctrl_handler = &mt9v032->ctrls; mt9v032->subdev.ctrl_handler = &mt9v032->ctrls;
if (mt9v032->ctrls.error) if (mt9v032->ctrls.error) {
printk(KERN_INFO "%s: control initialization error %d\n", dev_err(&client->dev, "control initialization error %d\n",
__func__, mt9v032->ctrls.error); mt9v032->ctrls.error);
ret = mt9v032->ctrls.error;
goto err;
}
mt9v032->crop.left = MT9V032_COLUMN_START_DEF; mt9v032->crop.left = MT9V032_COLUMN_START_DEF;
mt9v032->crop.top = MT9V032_ROW_START_DEF; mt9v032->crop.top = MT9V032_ROW_START_DEF;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment