diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
index e5fd5ed217dac9562bb7ccf10c2ac96053d7a991..69ea1efbb051d032bf68e6f867549d61550b912d 100644
--- a/drivers/tee/optee/core.c
+++ b/drivers/tee/optee/core.c
@@ -696,7 +696,7 @@ static int __init optee_driver_init(void)
 		return -ENODEV;
 
 	np = of_find_matching_node(fw_np, optee_match);
-	if (!np)
+	if (!np || !of_device_is_available(np))
 		return -ENODEV;
 
 	optee = optee_probe(np);