Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab887a8d authored by Viswanadha Raju Thotakura's avatar Viswanadha Raju Thotakura Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: preserve eeprom data



Do not delete the eeprom data after first read,
this data is needed in the case of camera daemon reboot.

Change-Id: I3e68d25e6b296051dc683c353e27bedb44b97b0d
Signed-off-by: default avatarViswanadha Raju Thotakura <viswanad@codeaurora.org>
parent 9bb9688e
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -848,12 +848,6 @@ static int eeprom_config_read_cal_data32(struct msm_eeprom_ctrl_t *e_ctrl,
	rc = copy_to_user(ptr_dest, e_ctrl->cal_data.mapdata,
		cdata.cfg.read_data.num_bytes);

	/* should only be called once.  free kernel resource */
	if (!rc) {
		kfree(e_ctrl->cal_data.mapdata);
		kfree(e_ctrl->cal_data.map);
		memset(&e_ctrl->cal_data, 0, sizeof(e_ctrl->cal_data));
	}
	return rc;
}