summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPatrick Delaunay <[email protected]>2021-09-02 11:56:17 +0200
committerTom Rini <[email protected]>2021-10-05 08:44:48 -0400
commit4f53ac2adbc0f4d3bfebee1b414870e228469989 (patch)
treee5c87fdaad364c2a78df4875fce1da3809f91b2d /board
parent51827f9a8be3def01b837a2809094e2fd2703b6a (diff)
tee: add a stub for tee_find_device
Add stub for tee_find_device function when CONFIG_TEE is not activated to simplify the caller code. This patch allows to remove the CONFIG_IS_ENABLED(OPTEE) tests for stm32 platform. Signed-off-by: Patrick Delaunay <[email protected]> Acked-by: Etienne Carriere <[email protected]> Reviewed-by: Jens Wiklander <[email protected]>
Diffstat (limited to 'board')
-rw-r--r--board/st/common/stm32mp_mtdparts.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/st/common/stm32mp_mtdparts.c b/board/st/common/stm32mp_mtdparts.c
index 8b636d62faf..18878424c7a 100644
--- a/board/st/common/stm32mp_mtdparts.c
+++ b/board/st/common/stm32mp_mtdparts.c
@@ -119,8 +119,7 @@ void board_mtdparts_default(const char **mtdids, const char **mtdparts)
}
#ifdef CONFIG_STM32MP15x_STM32IMAGE
- if (!serial && CONFIG_IS_ENABLED(OPTEE) &&
- tee_find_device(NULL, NULL, NULL, NULL))
+ if (!serial && tee_find_device(NULL, NULL, NULL, NULL))
tee = true;
#endif