OP-TEE iterates over the devices and when none are found the OP-TEE driver returns with an error. Return successfully instead because for example RPMB support doesn't require any devices exported from OP-TEE. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- drivers/tee/optee/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tee/optee/device.c b/drivers/tee/optee/device.c index 100a877395..5176989a50 100644 --- a/drivers/tee/optee/device.c +++ b/drivers/tee/optee/device.c @@ -115,6 +115,7 @@ static int __optee_enumerate_devices(u32 func) goto out_sess; if (!shm_size) { pr_debug("device enumeration PTA found, but no devices!\n"); + rc = 0; goto out_sess; } -- 2.39.5