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: Amit Blay <ablay@codeaurora.org>
This commit is contained in:
parent
26bb59b7f4
commit
3d4f53fccc
1 changed files with 5 additions and 1 deletions
|
@ -8530,7 +8530,11 @@ static int qseecom_probe(struct platform_device *pdev)
|
||||||
qseecom.ion_clnt = msm_ion_client_create("qseecom-kernel");
|
qseecom.ion_clnt = msm_ion_client_create("qseecom-kernel");
|
||||||
if (IS_ERR_OR_NULL(qseecom.ion_clnt)) {
|
if (IS_ERR_OR_NULL(qseecom.ion_clnt)) {
|
||||||
pr_err("Ion client cannot be created\n");
|
pr_err("Ion client cannot be created\n");
|
||||||
rc = -ENOMEM;
|
|
||||||
|
if (qseecom.ion_clnt != ERR_PTR(-EPROBE_DEFER))
|
||||||
|
rc = -ENOMEM;
|
||||||
|
else
|
||||||
|
rc = -EPROBE_DEFER;
|
||||||
goto exit_del_cdev;
|
goto exit_del_cdev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue