From: Etienne Carriere Date: Wed, 7 Dec 2022 15:29:59 +0000 (+0100) Subject: tee: optee: don't fail probe because of optee-rng X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=476a3d58dfeb6230f44b629e5791d70f0e55d78f;p=u-boot.git tee: optee: don't fail probe because of optee-rng Fixes optee-rng driver bind sequence in optee driver to print a warning message but not report an error status when a optee-rng service driver fails to be bound as the optee driver itself is still fully functional. Signed-off-by: Etienne Carriere Reviewed-by: Ilias Apalodimas Reviewed-by: Jens Wiklander Signed-off-by: Ilias Apalodimas --- diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c index 9240277579..604fd1414f 100644 --- a/drivers/tee/optee/core.c +++ b/drivers/tee/optee/core.c @@ -834,7 +834,7 @@ static int optee_probe(struct udevice *dev) */ ret = device_bind_driver(dev, "optee-rng", "optee-rng", NULL); if (ret) - return ret; + dev_warn(dev, "ftpm_tee failed to bind: %d\n", ret); } return 0;