diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-08-01 11:48:33 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-20 17:59:34 +0100 |
commit | a045fe21f0f4bc0908f6dc21d61eeb660f7bbd26 (patch) | |
tree | ecd9cc91667c932305326a8c3cc84542bc1c62e4 /drivers/tee | |
parent | bf95ccce798daaf0a0dbea2927d51894a45b9d7d (diff) | |
download | linux-stable-a045fe21f0f4bc0908f6dc21d61eeb660f7bbd26.tar.gz linux-stable-a045fe21f0f4bc0908f6dc21d61eeb660f7bbd26.tar.bz2 linux-stable-a045fe21f0f4bc0908f6dc21d61eeb660f7bbd26.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c index edb6e4e9ef3a..ca79c2ba2ef2 100644 --- a/drivers/tee/optee/core.c +++ b/drivers/tee/optee/core.c @@ -590,7 +590,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); |