If we fail to probe the optee-rng device, we print a wrong message
referring to the firmware tpm.

Signed-off-by: Ilias Apalodimas <[email protected]>
---
 drivers/tee/optee/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
index a813a84a4f16..88e23d252bcd 100644
--- a/drivers/tee/optee/core.c
+++ b/drivers/tee/optee/core.c
@@ -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;
-- 
2.38.1

Reply via email to