summaryrefslogtreecommitdiff
path: root/board/st
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2020-07-29 14:24:52 +0300
committerPatrice Chotard <patrice.chotard@st.com>2020-08-13 11:10:33 +0300
commitd0a3c4f9dbf0d661d3b91f46f0fa4db2dc33bb78 (patch)
tree881a5dd3772874824e4b22eac02ea37241cb24b1 /board/st
parent5eafc1d3d9644ef8c6e821d95e31f01ee6614d87 (diff)
downloadu-boot-d0a3c4f9dbf0d661d3b91f46f0fa4db2dc33bb78.tar.xz
board: stm32mp1: use const for struct node_info
Use const for the variable nodes in ft_board_setup, this patch follow fdt_fixup_mtdparts prototype and no more use stack. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'board/st')
-rw-r--r--board/st/stm32mp1/stm32mp1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index c5da3d8a73..3b677d339b 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -842,7 +842,7 @@ int mmc_get_env_dev(void)
#if defined(CONFIG_OF_BOARD_SETUP)
int ft_board_setup(void *blob, struct bd_info *bd)
{
- struct node_info nodes[] = {
+ static const struct node_info nodes[] = {
{ "st,stm32f469-qspi", MTD_DEV_TYPE_NOR, },
{ "st,stm32f469-qspi", MTD_DEV_TYPE_SPINAND},
{ "st,stm32mp15-fmc2", MTD_DEV_TYPE_NAND, },