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

Commit 3d4f53fc authored by Amit Blay's avatar Amit Blay Committed by Gerrit - the friendly Code Review server
Browse files

misc: qseecom: Support qseecom deferred probing



During qseecom driver probing, the ION driver is invoked.
This commit supports the case where the ION driver still hasn't
probed. In that case, the qseecom probing will be deferred, and
retried at a later stage.

Change-Id: Ic780e8fa1d48a9f5b8b98773c034b280475f5fd0
Signed-off-by: default avatarAmit Blay <ablay@codeaurora.org>
parent 26bb59b7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -8530,7 +8530,11 @@ static int qseecom_probe(struct platform_device *pdev)
	qseecom.ion_clnt = msm_ion_client_create("qseecom-kernel");
	if (IS_ERR_OR_NULL(qseecom.ion_clnt)) {
		pr_err("Ion client cannot be created\n");

		if (qseecom.ion_clnt != ERR_PTR(-EPROBE_DEFER))
			rc = -ENOMEM;
		else
			rc = -EPROBE_DEFER;
		goto exit_del_cdev;
	}