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

Commit 5934f7ca authored by Depeng Shao's avatar Depeng Shao
Browse files

msm: camera: sensor: Correct the state for config EEPROM



EEPROM needs to be released even if configuration fails,
so the state should be CAM_EEPROM_ACQUIRE  instead of
CAM_EEPROM_INIT.

Change-Id: I4c68cd606daec3d105a2473dbdd51c7549099479
Signed-off-by: default avatarDepeng Shao <depengs@codeaurora.org>
parent a312b5ba
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -912,7 +912,7 @@ static int32_t cam_eeprom_pkt_parse(struct cam_eeprom_ctrl_t *e_ctrl, void *arg)
	vfree(e_ctrl->cal_data.map);
	e_ctrl->cal_data.num_data = 0;
	e_ctrl->cal_data.num_map = 0;
	e_ctrl->cam_eeprom_state = CAM_EEPROM_INIT;
	e_ctrl->cam_eeprom_state = CAM_EEPROM_ACQUIRE;
release_buf:
	if (cam_mem_put_cpu_buf(dev_config.packet_handle))
		CAM_WARN(CAM_EEPROM, "Put cpu buffer failed : 0x%x",