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

Commit 0e24cc34 authored by Vishalsingh Hajeri's avatar Vishalsingh Hajeri Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: core: Remove the null check before sending flush



Allow the device driver to follow the proper cleanup sequence
during stop to avoid smmu fault in next device start.

Change-Id: I1ac3fec03f9141a36f9a303e26f35585c78fc8a3
Signed-off-by: default avatarvhajeri <vhajeri@codeaurora.org>
parent d68ce08f
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -815,11 +815,9 @@ int32_t cam_context_stop_dev_to_hw(struct cam_context *ctx)
	if (rc)
		goto end;

	if (ctx->ctxt_to_hw_map) {
	rc = cam_context_flush_ctx_to_hw(ctx);
	if (rc)
		goto end;
	}

	/* stop hw first */
	if (ctx->hw_mgr_intf->hw_stop) {