diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-09-02 12:56:17 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-10-05 15:44:48 +0300 |
commit | 4f53ac2adbc0f4d3bfebee1b414870e228469989 (patch) | |
tree | e5c87fdaad364c2a78df4875fce1da3809f91b2d /board/st | |
parent | 51827f9a8be3def01b837a2809094e2fd2703b6a (diff) | |
download | u-boot-4f53ac2adbc0f4d3bfebee1b414870e228469989.tar.xz |
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 <patrick.delaunay@foss.st.com>
Acked-by: Etienne Carriere <etienne.carriere@inaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'board/st')
-rw-r--r-- | board/st/common/stm32mp_mtdparts.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/board/st/common/stm32mp_mtdparts.c b/board/st/common/stm32mp_mtdparts.c index 8b636d62fa..18878424c7 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 |