|
@@ -1035,13 +1035,6 @@ static int ov2722_s_config(struct v4l2_subdev *sd,
|
|
|
(struct camera_sensor_platform_data *)platform_data;
|
|
|
|
|
|
mutex_lock(&dev->input_lock);
|
|
|
- if (dev->platform_data->platform_init) {
|
|
|
- ret = dev->platform_data->platform_init(client);
|
|
|
- if (ret) {
|
|
|
- dev_err(&client->dev, "platform init err\n");
|
|
|
- goto platform_init_failed;
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
/* power off the module, then power on it in future
|
|
|
* as first power on by board may not fulfill the
|
|
@@ -1086,9 +1079,6 @@ fail_power_on:
|
|
|
power_down(sd);
|
|
|
dev_err(&client->dev, "sensor power-gating failed\n");
|
|
|
fail_power_off:
|
|
|
- if (dev->platform_data->platform_deinit)
|
|
|
- dev->platform_data->platform_deinit();
|
|
|
-platform_init_failed:
|
|
|
mutex_unlock(&dev->input_lock);
|
|
|
return ret;
|
|
|
}
|
|
@@ -1232,9 +1222,6 @@ static int ov2722_remove(struct i2c_client *client)
|
|
|
struct ov2722_device *dev = to_ov2722_sensor(sd);
|
|
|
dev_dbg(&client->dev, "ov2722_remove...\n");
|
|
|
|
|
|
- if (dev->platform_data->platform_deinit)
|
|
|
- dev->platform_data->platform_deinit();
|
|
|
-
|
|
|
dev->platform_data->csi_cfg(sd, 0);
|
|
|
v4l2_ctrl_handler_free(&dev->ctrl_handler);
|
|
|
v4l2_device_unregister_subdev(sd);
|