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

Commit a140ad5f authored by Rishabh Jain's avatar Rishabh Jain
Browse files

msm: camera: ope: Stop OPE in case of init failure



Stop the OPE in case of init failure. This will help
OPE to move to completely deinit state if init fails.

CRs-Fixed: 2628585
Change-Id: I181349e1736f10208f5e5a7b2d3529316c0b09bc
Signed-off-by: default avatarRishabh Jain <risjai@codeaurora.org>
parent 14f1a95b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2341,6 +2341,10 @@ static int cam_ope_mgr_acquire_hw(void *hw_priv, void *hw_acquire_args)
			if (hw_mgr->ope_dev_intf[i]->hw_ops.deinit(
				hw_mgr->ope_dev_intf[i]->hw_priv, NULL, 0))
				CAM_ERR(CAM_OPE, "OPE deinit fail");
			if (hw_mgr->ope_dev_intf[i]->hw_ops.stop(
				hw_mgr->ope_dev_intf[i]->hw_priv,
				NULL, 0))
				CAM_ERR(CAM_OPE, "OPE stop fail");
		}
	}
end: