mirror of
https://github.com/commaai/agnos-kernel-sdm845.git
synced 2026-06-08 11:24:51 +08:00
Revert "msm: camera: eeprom: set platform driver data to null"
This reverts commit 61023d53cb.
Change-Id: I669f466a717638f6451bf160cb44475ec266650a
Signed-off-by: Fan Haizhou <haizhoufan@codeaurora.org>
This commit is contained in:
@@ -261,10 +261,9 @@ static int cam_eeprom_i2c_driver_remove(struct i2c_client *client)
|
||||
for (i = 0; i < soc_info->num_clk; i++)
|
||||
devm_clk_put(soc_info->dev, soc_info->clk[i]);
|
||||
|
||||
mutex_destroy(&(e_ctrl->eeprom_mutex));
|
||||
kfree(soc_private);
|
||||
kfree(e_ctrl->io_master_info.cci_client);
|
||||
v4l2_set_subdevdata(&e_ctrl->v4l2_dev_str.sd, NULL);
|
||||
if (soc_private)
|
||||
kfree(soc_private);
|
||||
|
||||
kfree(e_ctrl);
|
||||
|
||||
return 0;
|
||||
@@ -395,8 +394,6 @@ static int cam_eeprom_spi_driver_remove(struct spi_device *sdev)
|
||||
kfree(soc_private->power_info.gpio_num_info);
|
||||
kfree(soc_private);
|
||||
}
|
||||
mutex_destroy(&(e_ctrl->eeprom_mutex));
|
||||
v4l2_set_subdevdata(&e_ctrl->v4l2_dev_str.sd, NULL);
|
||||
kfree(e_ctrl);
|
||||
|
||||
return 0;
|
||||
@@ -492,11 +489,8 @@ static int cam_eeprom_platform_driver_remove(struct platform_device *pdev)
|
||||
for (i = 0; i < soc_info->num_clk; i++)
|
||||
devm_clk_put(soc_info->dev, soc_info->clk[i]);
|
||||
|
||||
mutex_destroy(&(e_ctrl->eeprom_mutex));
|
||||
kfree(soc_info->soc_private);
|
||||
kfree(e_ctrl->io_master_info.cci_client);
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
v4l2_set_subdevdata(&e_ctrl->v4l2_dev_str.sd, NULL);
|
||||
kfree(e_ctrl);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user