diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-08-01 12:48:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-20 20:45:20 +0300 |
commit | 75a600d7f062a9633fe9f5728aa2e26c13193e40 (patch) | |
tree | e71d9acaea3130f68dda4232f7c75b1e33163b6f | |
parent | cd3de5870c8043fc9fba2c7547e46d5e62650879 (diff) | |
download | linux-75a600d7f062a9633fe9f5728aa2e26c13193e40.tar.xz |
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>
-rw-r--r-- | drivers/tee/optee/core.c | 2 |
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); |