msm: camera: flash: Correct log location

Flash acquire logs with device handle is getting printed at wrong
place. This change move acquire logging after succesful acquire
of flash hw.

CRs-Fixed: 3048249
Change-Id: Ibe5071c963faad87585e7ead74e4e41de0d2ddd4
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
Cette révision appartient à :
Jigarkumar Zala
2021-10-19 11:27:56 -07:00
révisé par Jigarkumar Zala
Parent 1b13715a6e
révision 1a2540f2f4

Voir le fichier

@@ -35,9 +35,6 @@ static int32_t cam_flash_driver_cmd(struct cam_flash_ctrl *fctrl,
struct cam_sensor_acquire_dev flash_acq_dev;
struct cam_create_dev_hdl bridge_params;
CAM_INFO(CAM_FLASH, "CAM_ACQUIRE_DEV for dev_hdl: 0x%x",
fctrl->bridge_intf.device_hdl);
if (fctrl->flash_state != CAM_FLASH_STATE_INIT) {
CAM_ERR(CAM_FLASH,
"Cannot apply Acquire dev: Prev state: %d",
@@ -84,6 +81,9 @@ static int32_t cam_flash_driver_cmd(struct cam_flash_ctrl *fctrl,
goto release_mutex;
}
fctrl->flash_state = CAM_FLASH_STATE_ACQUIRE;
CAM_INFO(CAM_FLASH, "CAM_ACQUIRE_DEV for dev_hdl: 0x%x",
fctrl->bridge_intf.device_hdl);
break;
}
case CAM_RELEASE_DEV: {