Merge tag 'tee-optee-for-5.2' of http://git.linaro.org:/people/jens.wiklander/linux...
[sfrench/cifs-2.6.git] / drivers / tee / optee / core.c
index fdce6293e03df6b8a73b78e9d8db9e4f8421a84f..48963eab32f5e02c171a09abd4e0966b4299859c 100644 (file)
@@ -652,6 +652,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");
 
        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:
        pr_info("initialized driver\n");
        return optee;
 err: