Skip to content

Commit

Permalink
tee: optee: take DT status property into account
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Ard Biesheuvel authored and jforissier committed Nov 5, 2018
1 parent acd25d6 commit 226d014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tee/optee/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,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);
Expand Down

0 comments on commit 226d014

Please sign in to comment.