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>
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");
- rc = -ENOMEM;
+
+ if (qseecom.ion_clnt != ERR_PTR(-EPROBE_DEFER))
+ rc = -ENOMEM;
+ else
+ rc = -EPROBE_DEFER;
goto exit_del_cdev;
}