Skip to content

Commit db878f7

Browse files
Ard Biesheuveljenswi-linaro
authored andcommitted
tee: optee: take DT status property into account
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>
1 parent 94710ca commit db878f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tee/optee/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ static int __init optee_driver_init(void)
696696
return -ENODEV;
697697

698698
np = of_find_matching_node(fw_np, optee_match);
699-
if (!np)
699+
if (!np || !of_device_is_available(np))
700700
return -ENODEV;
701701

702702
optee = optee_probe(np);

0 commit comments

Comments
 (0)