]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/staging/media/atomisp/i2c/atomisp-gc2235.c
media: staging: atomisp: Remove unused members of camera_sensor_platform_data
[mirror_ubuntu-bionic-kernel.git] / drivers / staging / media / atomisp / i2c / atomisp-gc2235.c
index ccbc3df92dff21b27c54e9859936ddbc53158ef3..85da5fe240339c16694f9b2acc54dbcea191efde 100644 (file)
@@ -897,13 +897,6 @@ static int gc2235_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
         * power on sequqence needed by the module
@@ -947,9 +940,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;
 }
@@ -1092,9 +1082,6 @@ static int gc2235_remove(struct i2c_client *client)
        struct gc2235_device *dev = to_gc2235_sensor(sd);
        dev_dbg(&client->dev, "gc2235_remove...\n");
 
-       if (dev->platform_data->platform_deinit)
-               dev->platform_data->platform_deinit();
-
        dev->platform_data->csi_cfg(sd, 0);
 
        v4l2_device_unregister_subdev(sd);