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

Commit 772039c6 authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: cci: Correct the condition check" into camera-kernel.lnx.4.0

parents 0a20494e c8ac83dc
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -403,11 +403,15 @@ int cam_cci_soc_release(struct cci_device *cci_dev,
		return -EINVAL;
	}

	if (--cci_dev->master_active_slave[master])
	if (!(--cci_dev->master_active_slave[master])) {
		cci_dev->cci_master_info[master].is_initilized = false;
		CAM_DBG(CAM_CCI,
			"All submodules are released for master: %d", master);
	}

	if (--cci_dev->ref_count) {
		CAM_DBG(CAM_CCI, "ref_count Exit %d", cci_dev->ref_count);
		CAM_DBG(CAM_CCI, "Submodule release: Ref_count: %d",
			cci_dev->ref_count);
		return 0;
	}