Skip to content

Commit 226d014

Browse files
Ard Biesheuveljforissier
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 <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
1 parent acd25d6 commit 226d014

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
@@ -700,7 +700,7 @@ static int __init optee_driver_init(void)
700700
return -ENODEV;
701701

702702
np = of_find_matching_node(fw_np, optee_match);
703-
if (!np)
703+
if (!np || !of_device_is_available(np))
704704
return -ENODEV;
705705

706706
optee = optee_probe(np);

0 commit comments

Comments
 (0)