tee: optee: add TEE bus device enumeration support
[sfrench/cifs-2.6.git] / drivers / tee / optee / core.c
index e5efce3c08e2eee08c3a3bc6fb330da07df5c4b8..ac59c77841a4948d5e8071618d92cffb27bc41d7 100644 (file)
@@ -634,6 +634,10 @@ static struct optee *optee_probe(struct device_node *np)
        if (optee->sec_caps & OPTEE_SMC_SEC_CAP_DYNAMIC_SHM)
                pr_info("dynamic shared memory is enabled\n");
 
+       rc = optee_enumerate_devices();
+       if (rc)
+               goto err;
+
        pr_info("initialized driver\n");
        return optee;
 err: