summaryrefslogtreecommitdiffstats
path: root/drivers/tee
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2018-08-01 11:48:33 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-20 18:45:20 +0100
commit75a600d7f062a9633fe9f5728aa2e26c13193e40 (patch)
treee71d9acaea3130f68dda4232f7c75b1e33163b6f /drivers/tee
parentcd3de5870c8043fc9fba2c7547e46d5e62650879 (diff)
downloadlinux-stable-75a600d7f062a9633fe9f5728aa2e26c13193e40.tar.gz
linux-stable-75a600d7f062a9633fe9f5728aa2e26c13193e40.tar.bz2
linux-stable-75a600d7f062a9633fe9f5728aa2e26c13193e40.zip
tee: optee: take DT status property into account
[ Upstream commit db878f76b9ff7487da9bb0f686153f81829f1230 ] DT nodes may have a 'status' property which, if set to anything other than 'ok' or 'okay', indicates to the OS that the DT node should be treated as if it was not present. So add that missing logic to the OP-TEE driver. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/tee')
-rw-r--r--drivers/tee/optee/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
index e1aafe842d66..34dce850067b 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);