|
@@ -1770,8 +1770,7 @@ static int imx274_probe(struct i2c_client *client,
|
|
|
return 0;
|
|
|
|
|
|
err_ctrls:
|
|
|
- v4l2_async_unregister_subdev(sd);
|
|
|
- v4l2_ctrl_handler_free(sd->ctrl_handler);
|
|
|
+ v4l2_ctrl_handler_free(&imx274->ctrls.handler);
|
|
|
err_me:
|
|
|
media_entity_cleanup(&sd->entity);
|
|
|
err_regmap:
|
|
@@ -1788,7 +1787,7 @@ static int imx274_remove(struct i2c_client *client)
|
|
|
imx274_write_table(imx274, mode_table[IMX274_MODE_STOP_STREAM]);
|
|
|
|
|
|
v4l2_async_unregister_subdev(sd);
|
|
|
- v4l2_ctrl_handler_free(sd->ctrl_handler);
|
|
|
+ v4l2_ctrl_handler_free(&imx274->ctrls.handler);
|
|
|
media_entity_cleanup(&sd->entity);
|
|
|
mutex_destroy(&imx274->lock);
|
|
|
return 0;
|