]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tee: optee: fix a print error on rng probing
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 18 Jan 2023 15:38:21 +0000 (17:38 +0200)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Fri, 20 Jan 2023 08:04:56 +0000 (10:04 +0200)
If we fail to probe the optee-rng device, we print a wrong message
referring to the firmware tpm.

Fixes: 476a3d58dfeb ("tee: optee: don't fail probe because of optee-rng")
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/tee/optee/core.c

index a813a84a4f165149b6bcb36bdc356a5a541c9bd3..88e23d252bcd69fb6f2cb3b0f4f31b1c2eb4570e 100644 (file)
@@ -850,7 +850,7 @@ static int optee_probe(struct udevice *dev)
                ret = device_bind_driver_to_node(dev, "optee-rng", "optee-rng",
                                                 dev_ofnode(dev), NULL);
                if (ret)
-                       dev_warn(dev, "ftpm_tee failed to bind: %d\n", ret);
+                       dev_warn(dev, "optee-rng failed to bind: %d\n", ret);
        }
 
        return 0;